Changeset 33656
- Timestamp:
- 08/20/2015 04:01:35 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/edit-comments.js
r33655 r33656 36 36 diff = $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1; 37 37 updatePending( diff ); 38 updateCountText( 'span.approved-count', -1 * diff ); 38 updateCountText( 'span.approved-count', -1 * diff ); 39 updateCountText( 'span.comment-count-approved', -1 * diff ); 39 40 }; 40 41 … … 131 132 132 133 updatePending = function( diff ) { 133 $('span.pending-count ').each(function() {134 $('span.pending-count, .comment-count-pending').each(function() { 134 135 var a = $(this), n = getCount(a) + diff; 135 136 if ( n < 1 ) … … 290 291 291 292 if ( approvedDiff ) { 292 updateCountText( 'span.approved-count', approvedDiff ); 293 updateCountText( 'span.approved-count', approvedDiff ); 294 updateCountText( 'span.comment-count-approved', approvedDiff ); 293 295 } 294 296
Note: See TracChangeset
for help on using the changeset viewer.