##// END OF EJS Templates
fixed show inline comments, broken after some html refactoring
marcink -
r1845:a048d0c6 beta
parent child Browse files
Show More
@@ -99,7 +99,7 b''
99 <div class="cs_${change}">
99 <div class="cs_${change}">
100 <div class="node">
100 <div class="node">
101 %if change != 'removed':
101 %if change != 'removed':
102 ${h.link_to(h.safe_unicode(filenode.path),c.anchor_url(filenode.changeset.raw_id,filenode.path))}
102 ${h.link_to(h.safe_unicode(filenode.path),c.anchor_url(filenode.changeset.raw_id,filenode.path)+"_target")}
103 %else:
103 %else:
104 ${h.link_to(h.safe_unicode(filenode.path),h.url.current(anchor=h.FID('',filenode.path)))}
104 ${h.link_to(h.safe_unicode(filenode.path),h.url.current(anchor=h.FID('',filenode.path)))}
105 %endif
105 %endif
@@ -154,11 +154,15 b''
154 YUE.on(YUQ('.show-inline-comments'),'change',function(e){
154 YUE.on(YUQ('.show-inline-comments'),'change',function(e){
155 var show = 'none';
155 var show = 'none';
156 var target = e.currentTarget;
156 var target = e.currentTarget;
157 console.log(target);
157 if(target.checked){
158 if(target.checked){
158 var show = ''
159 var show = ''
159 }
160 }
161 console.log('aa')
160 var boxid = YUD.getAttribute(target,'id_for');
162 var boxid = YUD.getAttribute(target,'id_for');
163 console.log(boxid);
161 var comments = YUQ('#{0} .inline-comments'.format(boxid));
164 var comments = YUQ('#{0} .inline-comments'.format(boxid));
165 console.log(comments)
162 for(c in comments){
166 for(c in comments){
163 YUD.setStyle(comments[c],'display',show);
167 YUD.setStyle(comments[c],'display',show);
164 }
168 }
@@ -7,8 +7,8 b''
7
7
8 %for change,filenode,diff,cs1,cs2,stat in changes:
8 %for change,filenode,diff,cs1,cs2,stat in changes:
9 %if change !='removed':
9 %if change !='removed':
10 <div id="${h.FID(filenode.changeset.raw_id,filenode.path)}" style="clear:both;height:90px;margin-top:-60px"></div>
10 <div id="${h.FID(filenode.changeset.raw_id,filenode.path)}_target" style="clear:both;height:90px;margin-top:-60px"></div>
11 <div class="diffblock margined comm">
11 <div id="${h.FID(filenode.changeset.raw_id,filenode.path)}" class="diffblock margined comm">
12 <div class="code-header">
12 <div class="code-header">
13 <div class="changeset_header">
13 <div class="changeset_header">
14 <div class="changeset_file">
14 <div class="changeset_file">
General Comments 0
You need to be logged in to leave comments. Login now