Don't hide reply action on comments added with AJAX, props caesarsgrunt, see #7435
git-svn-id: http://svn.automattic.com/wordpress/trunk@8821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f68126a5ad
commit
fcaf5d56d2
|
@ -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);
|
||||
})(jQuery);
|
||||
|
|
|
@ -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']),
|
||||
|
|
Loading…
Reference in New Issue