Make WordPress Core

Changeset 33656


Ignore:
Timestamp:
08/20/2015 04:01:35 AM (9 years ago)
Author:
wonderboymusic
Message:

Comments List Table:

  • Properly increment/decrement approved/pending bubbles in response column

See #11200.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/edit-comments.js

    r33655 r33656  
    3636        diff = $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1;
    3737        updatePending( diff );
    38         updateCountText( 'span.approved-count', -1 * diff );
     38        updateCountText( 'span.approved-count', -1 * diff  );
     39        updateCountText( 'span.comment-count-approved', -1 * diff );
    3940    };
    4041
     
    131132
    132133    updatePending = function( diff ) {
    133         $('span.pending-count').each(function() {
     134        $('span.pending-count, .comment-count-pending').each(function() {
    134135            var a = $(this), n = getCount(a) + diff;
    135136            if ( n < 1 )
     
    290291
    291292        if ( approvedDiff ) {
    292             updateCountText( 'span.approved-count', approvedDiff );
     293            updateCountText( 'span.approved-count', approvedDiff  );
     294            updateCountText( 'span.comment-count-approved', approvedDiff );
    293295        }
    294296
Note: See TracChangeset for help on using the changeset viewer.