Mercurial > kallithea
changeset 1845:a048d0c6da3c beta
fixed show inline comments, broken after some html refactoring
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 07 Jan 2012 22:22:16 +0200 |
parents | 68c45628236f |
children | 349a0ca30a75 |
files | rhodecode/templates/changeset/changeset.html rhodecode/templates/changeset/diff_block.html |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/templates/changeset/changeset.html Sat Jan 07 04:23:43 2012 +0200 +++ b/rhodecode/templates/changeset/changeset.html Sat Jan 07 22:22:16 2012 +0200 @@ -99,7 +99,7 @@ <div class="cs_${change}"> <div class="node"> %if change != 'removed': - ${h.link_to(h.safe_unicode(filenode.path),c.anchor_url(filenode.changeset.raw_id,filenode.path))} + ${h.link_to(h.safe_unicode(filenode.path),c.anchor_url(filenode.changeset.raw_id,filenode.path)+"_target")} %else: ${h.link_to(h.safe_unicode(filenode.path),h.url.current(anchor=h.FID('',filenode.path)))} %endif @@ -154,11 +154,15 @@ YUE.on(YUQ('.show-inline-comments'),'change',function(e){ var show = 'none'; var target = e.currentTarget; + console.log(target); if(target.checked){ var show = '' } + console.log('aa') var boxid = YUD.getAttribute(target,'id_for'); + console.log(boxid); var comments = YUQ('#{0} .inline-comments'.format(boxid)); + console.log(comments) for(c in comments){ YUD.setStyle(comments[c],'display',show); }
--- a/rhodecode/templates/changeset/diff_block.html Sat Jan 07 04:23:43 2012 +0200 +++ b/rhodecode/templates/changeset/diff_block.html Sat Jan 07 22:22:16 2012 +0200 @@ -7,8 +7,8 @@ %for change,filenode,diff,cs1,cs2,stat in changes: %if change !='removed': - <div id="${h.FID(filenode.changeset.raw_id,filenode.path)}" style="clear:both;height:90px;margin-top:-60px"></div> - <div class="diffblock margined comm"> + <div id="${h.FID(filenode.changeset.raw_id,filenode.path)}_target" style="clear:both;height:90px;margin-top:-60px"></div> + <div id="${h.FID(filenode.changeset.raw_id,filenode.path)}" class="diffblock margined comm"> <div class="code-header"> <div class="changeset_header"> <div class="changeset_file">