mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
git-svn-id: https://develop.svn.wordpress.org/trunk@9112 602fd350-edb4-49c9-b593-d223f7449a82
13 lines
495 B
JavaScript
13 lines
495 B
JavaScript
|
|
function moveAddCommentForm(commId, parentId, respondId) {
|
|
var div = document.createElement('div');
|
|
jQuery("#"+respondId).before( jQuery(div).attr('id', 'wp-temp-form-div').hide() ).appendTo("#"+commId);
|
|
jQuery("#comment-parent").val(parentId);
|
|
jQuery("#cancel-comment-reply-link").show().click(function(){
|
|
jQuery("#comment-parent").val("0");
|
|
jQuery('#wp-temp-form-div').after( jQuery("#"+respondId) ).remove();
|
|
jQuery(this).hide();
|
|
return false;
|
|
});
|
|
jQuery("#comment").focus();
|
|
} |