芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/acancehyucatan.gob.mx/media/com_cpanel/js/admin-cpanel-default-es5.min.js
!function(){"use strict";!function(e,t,r){r.unpublishModule=function(e){var t=e.getAttribute("data-module-id");r.request({url:"index.php?option=com_modules&task=modules.unpublish&format=json&cid="+t,method:"POST",headers:{"Content-Type":"application/json"},onSuccess:function(){var t=e.closest(".module-wrapper");t.parentNode.removeChild(t),r.renderMessages({message:[r.Text._("COM_CPANEL_UNPUBLISH_MODULE_SUCCESS")]})},onError:function(){r.renderMessages({error:[r.Text._("COM_CPANEL_UNPUBLISH_MODULE_ERROR")]})}})};t.addEventListener("DOMContentLoaded",(function e(){var i=t.getElementById("content");i&&[].slice.call(i.querySelectorAll(".unpublish-module")).forEach((function(e){e.addEventListener("click",(function(e){var t=e.target;return r.unpublishModule(t)}))}));t.removeEventListener("DOMContentLoaded",e)})),{$gridBox:null,gridAutoRows:0,gridRowGap:10,resizeGridItem:function(e,t,r){var i=e.querySelector(".card");if(i){var n=i.getBoundingClientRect().height+r,o=Math.ceil(n/(t+r));e.style.gridRowEnd="span "+o}},resizeAllGridItems:function(){var e=this;[].slice.call(this.$gridBox.children).forEach((function(t){e.resizeGridItem(t,e.gridAutoRows,e.gridRowGap)}))},initialise:function(){var r=this;this.$gridBox=t.querySelector("#cpanel-modules .card-columns");var i,n,o,s=e.getComputedStyle(this.$gridBox);this.gridAutoRows=parseInt(s.getPropertyValue("grid-auto-rows"),10)||this.gridAutoRows,this.gridRowGap=parseInt(s.getPropertyValue("grid-row-gap"),10)||this.gridRowGap,this.resizeAllGridItems(),e.addEventListener("load",(function(){return r.resizeAllGridItems()})),e.addEventListener("joomla:menu-toggle",(function(){setTimeout((function(){return r.resizeAllGridItems()}),330)})),e.addEventListener("resize",(i=function(){return r.resizeAllGridItems()},void 0===(n=50)&&(n=250),function(){for(var e=arguments.length,t=new Array(e),r=0;r