2008-10-09 03:37:05 -04:00
|
|
|
|
|
|
|
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;
|
|
|
|
});
|
2008-10-04 02:11:33 -04:00
|
|
|
jQuery("#comment").focus();
|
2008-10-09 03:37:05 -04:00
|
|
|
}
|