Changeset 1034:b11afd216931 for admin/js/_comments.js
- Timestamp:
- 11/25/12 11:57:12 (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_comments.js
r1033 r1034 13 13 }; 14 14 15 dotclear.commentsExpander = function(line ) {15 dotclear.commentsExpander = function(line,lines) { 16 16 var td = line.firstChild; 17 17 … … 21 21 img.className = 'expand'; 22 22 $(img).css('cursor','pointer'); 23 img.line = line;24 img.onclick = function() { dotclear.viewCommentsContent(this,this.line ); };23 img.lines = lines; 24 img.onclick = function() { dotclear.viewCommentsContent(this,this.lines); }; 25 25 26 26 td.insertBefore(img,td.firstChild); 27 27 }; 28 28 29 dotclear.viewCommentsContent = function(img,line ) {30 $('#form-comments tr.line').each(function() {29 dotclear.viewCommentsContent = function(img,lines) { 30 lines.each(function() { 31 31 var td = this.firstChild; 32 32 td.firstChild.click(); … … 105 105 $(function() { 106 106 $('#form-comments tr:not(.line)').each(function() { 107 dotclear.commentsExpander(this );107 dotclear.commentsExpander(this,$('#form-comments tr.line')); 108 108 }); 109 109 $('#form-comments tr.line').each(function() {
Note: See TracChangeset
for help on using the changeset viewer.