Don't hide reply action on comments added with AJAX, props caesarsgrunt, see #7435
git-svn-id: https://develop.svn.wordpress.org/trunk@8821 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6a9f61d633
commit
7608d7f4ee
@ -84,10 +84,6 @@ $(document).ready(function(){
|
|||||||
setCommentsList();
|
setCommentsList();
|
||||||
});
|
});
|
||||||
|
|
||||||
})(jQuery);
|
|
||||||
|
|
||||||
(function($){
|
|
||||||
|
|
||||||
commentReply = {
|
commentReply = {
|
||||||
|
|
||||||
open : function(c, p) {
|
open : function(c, p) {
|
||||||
@ -195,8 +191,10 @@ commentReply = {
|
|||||||
$('#the-comment-list').append(r.data);
|
$('#the-comment-list').append(r.data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('#comment-'+r.id+' .hide-if-no-js').removeClass('hide-if-no-js');
|
||||||
|
|
||||||
$('#comment-'+r.id)
|
$('#comment-'+r.id)
|
||||||
.animate( { backgroundColor:"#CFEBF7" }, 600 )
|
.animate( { backgroundColor:"#CCEEBB" }, 600 )
|
||||||
.animate( { backgroundColor:"transparent" }, 600 );
|
.animate( { backgroundColor:"transparent" }, 600 );
|
||||||
|
|
||||||
setCommentsList();
|
setCommentsList();
|
||||||
@ -235,6 +233,7 @@ commentReply = {
|
|||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
if ( typeof QTags != 'undefined' )
|
if ( typeof QTags != 'undefined' )
|
||||||
ed_reply = new QTags('ed_reply', 'replycontent', 'replycontainer', 'more');
|
ed_reply = new QTags('ed_reply', 'replycontent', 'replycontainer', 'more');
|
||||||
|
|
||||||
if ( typeof $.table_hotkeys != 'undefined' ) {
|
if ( typeof $.table_hotkeys != 'undefined' ) {
|
||||||
var make_hotkeys_redirect = function(which) {
|
var make_hotkeys_redirect = function(which) {
|
||||||
return function() {
|
return function() {
|
||||||
@ -267,4 +266,4 @@ $(document).ready(function(){
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
@ -158,7 +158,7 @@ function wp_default_scripts( &$scripts ) {
|
|||||||
'good' => __('Medium'),
|
'good' => __('Medium'),
|
||||||
'strong' => __('Strong')
|
'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(
|
$scripts->localize( 'admin-comments', 'adminCommentsL10n', array(
|
||||||
'pending' => __('%i% pending'), // must look like: "# blah blah"
|
'pending' => __('%i% pending'), // must look like: "# blah blah"
|
||||||
'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),
|
'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),
|
||||||
|
Loading…
Reference in New Issue
Block a user