From d724d91bc0498082132622f2b741cf02262e7af9 Mon Sep 17 00:00:00 2001 From: Brian Hogg Date: Fri, 27 Sep 2024 14:32:53 -0400 Subject: [PATCH] Deleting build file. --- assets/js/llms-admin-tables.min.js | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 assets/js/llms-admin-tables.min.js diff --git a/assets/js/llms-admin-tables.min.js b/assets/js/llms-admin-tables.min.js deleted file mode 100644 index e144cff588..0000000000 --- a/assets/js/llms-admin-tables.min.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(i){window.llms=window.llms||{};window.llms.admin_tables=new function(){this.$tables=null,this.init=function(){var t=this;t.$tables=i(".llms-gb-table"),t.$tables.length&&t.bind()},this.bind=function(){var r=this;this.$tables.each(function(){var a,s,n,e=i(this);e.on("click",'button[name="llms-table-paging"]',function(t){t.preventDefault(),r.change_page(e,i(this))}),e.on("click",'button[name="llms-table-export"]',function(t){t.preventDefault(),r.export(e,i(this))}),e.on("click","a.llms-sortable",function(t){t.preventDefault(),r.change_order(e,i(this))}),e.parent().find(".llms-table-filters").on("change","select.llms-table-filter",function(t){r.change_filter(e,i(this))}),e.parent().find(".llms-table-search").on("keyup","input",(a=function(t){switch(t.keyCode){case 37:case 38:case 39:case 40:return;default:r.search(e,i(this))}},s=250,n=null,function(){var t=this,e=arguments;window.clearTimeout(n),n=window.setTimeout(function(){a.apply(t,e)},s)}))})},this.change_order=function(t,e){this.reload(t,{order:e.attr("data-order"),orderby:e.attr("data-orderby"),page:1})},this.change_filter=function(t,e){this.reload(t,{filter:e.val(),filterby:e.attr("name"),page:1})},this.change_page=function(t,e){this.reload(t,{order:this.get_args(t,"order"),orderby:this.get_args(t,"orderby"),page:e.attr("data-page")})},this.export=function(t,a,e){var s=this,n=t.find(".llms-table-export .llms-table-export-msg"),r=t.find(".llms-table-export .llms-table-progress");function l(){LLMS.Spinner.stop(a,"small"),a.removeAttr("disabled")}LLMS.Ajax.call({data:i.extend({action:"export_admin_table",handler:t.attr("data-handler"),filename:e},JSON.parse(t.attr("data-args"))),beforeSend:function(){a.attr("disabled")||(a.attr("disabled","disabled"),LLMS.Spinner.start(a,"small"))},error:function(t,e,a){var s=LLMS.l10n.translate("An error was encountered generating the export");l(),r.hide(),n.html(''+s+": "+a+""),console.error(t)},success:function(e){!e.success&&e.message?(l(),r.hide(),n.html(''+e.message+"")):e.success&&e.data&&e.data.progress&&(n.html(""),r.is("visible")||100===e.data.progress||r.css("display","inline-block"),r.find(".llms-table-progress-text").text(e.data.progress+"%"),r.find(".llms-table-progress-inner").css("width",e.data.progress+"%"),100!==e.data.progress?s.export(t,a,e.data.filename):setTimeout(function(){var t="llms-dl-export";i("#"+t).remove(),i("",{id:t,href:e.data.url,style:"display: hidden;",download:""}).appendTo("body"),i("#"+t)[0].click(),l(),r.hide()},1e3))}})},this.get_args=function(t,e){t=JSON.parse(t.attr("data-args"));return e?t[e]||!1:t},this.reload=function(e,t){t=i.extend({action:"get_admin_table_data",handler:e.attr("data-handler")},JSON.parse(e.attr("data-args")),t),LLMS.Ajax.call({data:t,beforeSend:function(){LLMS.Spinner.start(e.closest(".llms-table-wrap"))},success:function(t){LLMS.Spinner.stop(e.closest(".llms-table-wrap")),t.success&&(e.attr("data-args",t.data.args),e.find("thead").replaceWith(t.data.thead),e.find("tbody").replaceWith(t.data.tbody),e.find("tfoot").replaceWith(t.data.tfoot))}})},this.search=function(t,e){var a=e.val();(0===(len=a.length)||3<=len)&&this.reload(t,{page:1,search:e.val()})},this.init()}}(jQuery); -//# sourceMappingURL=../maps/js/llms-admin-tables.min.js.map