Changeset 6550
- Timestamp:
- 01/04/2008 11:53:15 AM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-post-rows.php
r6272 r6550 67 67 if ( $left ) 68 68 echo '<strong>'; 69 comments_number("<a href='edit.php?p=$id&c=1' title='$pending_phrase' >" . __('0') . '</a>', "<a href='edit.php?p=$id&c=1' title='$pending_phrase'>" . __('1') . '</a>', "<a href='edit.php?p=$id&c=1' title='$pending_phrase'>" . __('%') . '</a>');69 comments_number("<a href='edit.php?p=$id&c=1' title='$pending_phrase' class='post-com-count'>" . __('0') . '</a>', "<a href='edit.php?p=$id&c=1' title='$pending_phrase' class='post-com-count'>" . __('1') . '</a>', "<a href='edit.php?p=$id&c=1' title='$pending_phrase' class='post-com-count'>" . __('%') . '</a>'); 70 70 if ( $left ) 71 71 echo '</strong>'; -
trunk/wp-admin/js/edit-comments.js
r6545 r6550 4 4 var dimAfter = function( r, settings ) { 5 5 $('.comment-count').each( function() { 6 var a = $( '#' + this.id);6 var a = $(this); 7 7 var n = parseInt(a.html(),10) + ( $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1 ); 8 a.html( n.toString() ); 9 }); 10 // we need to do the opposite for this guy, TODO: update title 11 $('.post-com-count').each( function() { 12 var a = $(this); 13 var n = parseInt(a.html(),10) + ( $('#' + settings.element).is('.' + settings.dimClass) ? -1 : 1 ); 8 14 a.html( n.toString() ); 9 15 }); … … 12 18 var delAfter = function( r, settings ) { 13 19 $('.comment-count').each( function() { 14 var a = $( '#' + this.id);20 var a = $(this); 15 21 if ( a.parent('.current').size() || $('#' + settings.element).is('.unapproved') && parseInt(a.html(),10) > 0 ) { 16 22 var n = parseInt(a.html(),10) - 1;
Note: See TracChangeset
for help on using the changeset viewer.