Comments List Table:

* Properly increment/decrement approved/pending bubbles in `response` column

See #11200.

Built from https://develop.svn.wordpress.org/trunk@33656


git-svn-id: http://core.svn.wordpress.org/trunk@33623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-08-20 04:02:24 +00:00
parent df618f3461
commit 657d0f6918
3 changed files with 7 additions and 5 deletions

View File

@ -35,7 +35,8 @@ setCommentsList = function() {
diff = $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1;
updatePending( diff );
updateCountText( 'span.approved-count', -1 * diff );
updateCountText( 'span.approved-count', -1 * diff );
updateCountText( 'span.comment-count-approved', -1 * diff );
};
// Send current total, page, per_page and url
@ -130,7 +131,7 @@ setCommentsList = function() {
};
updatePending = function( diff ) {
$('span.pending-count').each(function() {
$('span.pending-count, .comment-count-pending').each(function() {
var a = $(this), n = getCount(a) + diff;
if ( n < 1 )
n = 0;
@ -289,7 +290,8 @@ setCommentsList = function() {
}
if ( approvedDiff ) {
updateCountText( 'span.approved-count', approvedDiff );
updateCountText( 'span.approved-count', approvedDiff );
updateCountText( 'span.comment-count-approved', approvedDiff );
}
if ( spamDiff ) {

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-33655';
$wp_version = '4.4-alpha-33656';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.