increment comment moderation counter when unapproving comment from approved comments screen. props mdawaffe. fixes #6338
git-svn-id: http://svn.automattic.com/wordpress/trunk@7462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -35,6 +35,8 @@ var delAfter = function( r, settings ) {
|
||||
var n = parseInt(a.html(),10);
|
||||
if ( $('#' + settings.element).is('.unapproved') ) { // we deleted a formerly unapproved comment
|
||||
n = n - 1;
|
||||
} else if ( $(settings.target).parents( 'span.unapprove' ).size() ) { // we "deleted" an approved comment from the approved list by clicking "Unapprove"
|
||||
n = n + 1;
|
||||
}
|
||||
if ( n < 0 ) { n = 0; }
|
||||
a.html( n.toString() );
|
||||
|
||||
Reference in New Issue
Block a user