diff --git a/wp-admin/js/edit-comments.js b/wp-admin/js/edit-comments.js index abaa93b25e..a4584fad5a 100644 --- a/wp-admin/js/edit-comments.js +++ b/wp-admin/js/edit-comments.js @@ -84,10 +84,6 @@ $(document).ready(function(){ setCommentsList(); }); -})(jQuery); - -(function($){ - commentReply = { open : function(c, p) { @@ -195,8 +191,10 @@ commentReply = { $('#the-comment-list').append(r.data); } + $('#comment-'+r.id+' .hide-if-no-js').removeClass('hide-if-no-js'); + $('#comment-'+r.id) - .animate( { backgroundColor:"#CFEBF7" }, 600 ) + .animate( { backgroundColor:"#CCEEBB" }, 600 ) .animate( { backgroundColor:"transparent" }, 600 ); setCommentsList(); @@ -235,6 +233,7 @@ commentReply = { $(document).ready(function(){ if ( typeof QTags != 'undefined' ) ed_reply = new QTags('ed_reply', 'replycontent', 'replycontainer', 'more'); + if ( typeof $.table_hotkeys != 'undefined' ) { var make_hotkeys_redirect = function(which) { return function() { @@ -267,4 +266,4 @@ $(document).ready(function(){ } }); -})(jQuery); \ No newline at end of file +})(jQuery); diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 1994a24425..d636ecf661 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -158,7 +158,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-draggable', 'jquery-ui-resizable', 'quicktags'), '20080828' ); + $scripts->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists', 'jquery-ui-draggable', 'jquery-ui-resizable', 'quicktags'), '20080905' ); $scripts->localize( 'admin-comments', 'adminCommentsL10n', array( 'pending' => __('%i% pending'), // must look like: "# blah blah" 'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),