Don't change bg color or approval status after comment QE or reply, fixes #7930
git-svn-id: http://svn.automattic.com/wordpress/trunk@9695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d2a9f7b57b
commit
cd6acbcbb2
|
@ -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();
|
||||
|
|
|
@ -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']),
|
||||
|
|
Loading…
Reference in New Issue