mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Fix comment action links after quick editing and reloading of page on enter while quick editing.
git-svn-id: https://develop.svn.wordpress.org/trunk@10349 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -138,7 +138,14 @@ commentReply = {
|
||||
var row = $('#replyrow');
|
||||
|
||||
$('a.cancel', row).click(function() { return commentReply.revert(); });
|
||||
$('a.save', row).click(function() { return commentReply.send(this); });
|
||||
$('a.save', row).click(function() { return commentReply.send(); });
|
||||
$('input#author, input#author-email, input#author-url', row).keypress(function(e){
|
||||
if ( e.which == 13 ) {
|
||||
commentReply.send();
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
// add events
|
||||
$('#the-comment-list .column-comment > p').dblclick(function(){
|
||||
@@ -149,6 +156,8 @@ commentReply = {
|
||||
if ( $('#the-comment-list #replyrow').length > 0 )
|
||||
commentReply.close();
|
||||
});
|
||||
|
||||
this.comments_listing = $('#comments-form > input[name="comment_status"]').val() || '';
|
||||
|
||||
},
|
||||
|
||||
@@ -272,6 +281,7 @@ commentReply = {
|
||||
|
||||
post.content = $('#replycontent').val();
|
||||
post.id = post.comment_post_ID;
|
||||
post.comments_listing = this.comments_listing;
|
||||
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
|
||||
Reference in New Issue
Block a user