WordPress.org

Make WordPress Core

Changeset 7462


Ignore:
Timestamp:
03/21/2008 09:57:25 PM (12 years ago)
Author:
markjaquith
Message:

increment comment moderation counter when unapproving comment from approved comments screen. props mdawaffe. fixes #6338

Location:
trunk
Files:
2 edited

Legend:

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

    r7459 r7462  
    3636        if ( $('#' + settings.element).is('.unapproved') ) { // we deleted a formerly unapproved comment
    3737            n = n - 1;
     38        } else if ( $(settings.target).parents( 'span.unapprove' ).size() ) { // we "deleted" an approved comment from the approved list by clicking "Unapprove"
     39            n = n + 1;
    3840        }
    3941        if ( n < 0 ) { n = 0; }
  • trunk/wp-includes/js/wp-lists.js

    r7262 r7462  
    3737        s = $.extend( {}, this.wpList.settings, {
    3838            element: null,
    39             nonce: 0
     39            nonce: 0,
     40            target: e.get(0)
    4041        }, s || {} );
    4142        if ( $.isFunction( s.confirm ) ) {
Note: See TracChangeset for help on using the changeset viewer.