!function(a,b){"use strict";function c(a,c){var d=this;c=b.extend({},c),d.$element=a,d.options=c,ConcreteEvent.unsubscribe("SitemapDeleteRequestComplete"),ConcreteEvent.subscribe("SitemapDeleteRequestComplete",function(a){d.hideLoader(),b.concreteAjax({dataType:"html",url:d.options.reloadUrl,method:"get",success:function(a){d.$element.replaceWith(a)},complete:function(){d.hideLoader()}})}),d.$element.on("click","div.ccm-pagination-wrapper a",function(a){a.preventDefault(),d.showLoader(),window.scrollTo(0,0),b.concreteAjax({loader:!1,dataType:"html",url:b(this).attr("href"),method:"get",success:function(a){d.$element.replaceWith(a)},complete:function(){d.hideLoader()}})}),d.$element.find(".dialog-launch").dialog()}c.prototype={showLoader:function(){var a=this;a.$element.find(".ccm-block-desktop-draft-list-for-me-loader").removeClass("hidden")},hideLoader:function(){var a=this;a.$element.find(".ccm-block-desktop-draft-list-for-me-loader").addClass("hidden")}},b.fn.concreteDraftList=function(a){return b.each(b(this),function(d,e){new c(b(this),a)})},a.ConcreteDraftList=c}(this,jQuery);