Changeset 1034:b11afd216931 for admin/js
- Timestamp:
- 11/25/12 11:57:12 (11 years ago)
- Branch:
- default
- Location:
- admin/js
- Files:
-
- 2 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() { -
admin/js/_posts_list.js
r1033 r1034 8 8 $(img).css('cursor','pointer'); 9 9 img.line = line; 10 img.onclick = function() { dotclear.viewPostContent(this,this.line); positionFooter();};10 img.onclick = function() { dotclear.viewPostContent(this,this.line); }; 11 11 12 12 td.insertBefore(img,td.firstChild); 13 13 }; 14 14 15 dotclear.postsExpander = function(line ) {15 dotclear.postsExpander = 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.viewPostsContent(this,this.line ); };23 img.lines = lines; 24 img.onclick = function() { dotclear.viewPostsContent(this,this.lines); }; 25 25 26 26 td.insertBefore(img,td.firstChild); 27 27 }; 28 28 29 dotclear.viewPostsContent = function(img,line ) {30 $('#form-entries tr.line').each(function() {29 dotclear.viewPostsContent = function(img,lines) { 30 lines.each(function() { 31 31 var td = this.firstChild; 32 32 td.firstChild.click(); … … 104 104 105 105 $('#form-entries tr:not(.line)').each(function() { 106 dotclear.postsExpander(this );106 dotclear.postsExpander(this,$('#form-entries tr.line')); 107 107 }); 108 108 $('#form-entries tr.line').each(function() {
Note: See TracChangeset
for help on using the changeset viewer.