diff --git a/wp-admin/js/edit-comments.js b/wp-admin/js/edit-comments.js index f2512e35c2..b26791737a 100644 --- a/wp-admin/js/edit-comments.js +++ b/wp-admin/js/edit-comments.js @@ -3,6 +3,13 @@ var theList; var theExtraList; setCommentsList = function() { var dimAfter = function( r, settings ) { + var c = $('#' + settings.element); + + if ( c.is('.unapproved') ) + c.find('div.comment_status').html('0') + else + c.find('div.comment_status').html('1') + $('li span.comment-count').each( function() { var a = $(this); var n = parseInt(a.html(),10); @@ -263,10 +270,11 @@ commentReply = { $(id+' .hide-if-no-js').removeClass('hide-if-no-js'); this.revert(); this.addEvents($(id)); + var bg = $(id).hasClass('unapproved') ? '#ffffe0' : '#fff'; $(id) - .animate( { backgroundColor:"#CCEEBB" }, 600 ) - .animate( { backgroundColor:"transparent" }, 600 ); + .animate( { 'backgroundColor':'#CCEEBB' }, 600 ) + .animate( { 'backgroundColor': bg }, 600 ); theList = theExtraList = null; $("#get-extra-comments, a[className*=':']").unbind(); diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 90db9ac156..646a8d648b 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -156,7 +156,7 @@ function wp_default_scripts( &$scripts ) { 'good' => __('Medium'), 'strong' => __('Strong') ) ); - $scripts->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20081031' ); + $scripts->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20081114' ); $scripts->localize( 'admin-comments', 'adminCommentsL10n', array( 'pending' => __('%i% pending'), // must look like: "# blah blah" 'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),