jquery(document).ready(function(p){var i=p("#cancel-comment-reply-link"),s=i.text(),c="commentlist";p(document).on("submit","#commentform",function(){return p.ajax({url:ajaxcomment.ajax_url,data:p(this).serialize()+"&action=ajax_comment",type:p(this).attr("method"),beforesend:addcomment.createbutterbar("提交中...."),error:function(e){var t;addcomment.createbutterbar(e.responsetext)},success:function(e){p("textarea").each(function(){this.value=""});var t=addcomment,r=t.i("cancel-comment-reply-link"),n=t.i("wp-temp-form-div"),o=t.i(t.respondid),a=t.i("comment_post_id").value,m;"0"!=t.i("comment_parent").value?p("#respond").before('
    '+e+"
"):p("."+c).length?"asc"==ajaxcomment.order?p("."+c).append(e):p("."+c).prepend(e):"bottom"==ajaxcomment.formpostion?p("#respond").before('
    '+e+"
"):p("#respond").after('
    '+e+"
"),t.createbutterbar("提交成功"),r.style.display="none",r.onclick=null,t.i("comment_parent").value="0",n&&o&&(n.parentnode.insertbefore(o,n),n.parentnode.removechild(n))}}),!1}),addcomment={moveform:function(e,t,r){var n=this,o,a=n.i(e),m=n.i(r),c=n.i("cancel-comment-reply-link"),d=n.i("comment_parent"),l=n.i("comment_post_id");i.text(s),n.respondid=r,n.i("wp-temp-form-div")||((o=document.createelement("div")).id="wp-temp-form-div",o.style.display="none",m.parentnode.insertbefore(o,m)),a?a.parentnode.insertbefore(m,a.nextsibling):(temp=n.i("wp-temp-form-div"),n.i("comment_parent").value="0",temp.parentnode.insertbefore(m,temp),temp.parentnode.removechild(temp)),p("body").animate({scrolltop:p("#respond").offset().top-180},400),d.value=t,c.style.display="",c.onclick=function(){var e=addcomment,t=e.i("wp-temp-form-div"),r=e.i(e.respondid);return e.i("comment_parent").value="0",t&&r&&(t.parentnode.insertbefore(r,t),t.parentnode.removechild(t)),this.style.display="none",this.onclick=null,!1};try{n.i("comment").focus()}catch(e){}return!1},i:function(e){return document.getelementbyid(e)},clearbutterbar:function(e){0

'+e+"

"),settimeout("jquery('.butterbar').remove()",3e3)}}});