'use strict';!function(e,f,g,h){XF.CommentLoader=XF.Event.newHandler({eventNameSpace:"XFCommentLoaderClick",options:{container:null,target:null,href:null},$loaderTarget:null,$container:null,href:null,loading:!1,init:function(){var a=this.options.container;a=a?this.$target.closest(a):this.$target;var b=this.options.target;b=b?XF.findRelativeIf(b,this.$container):a;this.$container=a;b.length?(this.$loaderTarget=b,(this.href=this.options.href||this.$target.attr("href"))||console.error("No href for %o",
this.$target)):console.error("No loader target for %o",this.$target)},click:function(a){a.preventDefault();if(!this.loading){this.loading=!0;var b=this;XF.ajax("get",this.href,null,function(c){c.html&&XF.setupHtmlInsert(c.html,function(d,k){d.insertAfter(b.$loaderTarget);b.$container.remove()})}).always(function(){b.loading=!1})}}});XF.CommentToggleClick=XF.extend(XF.ToggleClick,{__backup:{show:"_show"},show:function(){this._show();var a=this.$toggleTarget.find('[data-xf-click~="editor-placeholder"]');
a.length&&a.click()}});XF.Event.register("click","comment-loader","XF.CommentLoader");XF.Event.register("click","comment-toggle","XF.CommentToggleClick")}(jQuery,window,document);
Flash Sale Popup