芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/timucuy2124.gob.mx/media/system/js/multiselect-es5.min.js
!function(){"use strict";!function(e){var t=function(){function t(e){var t=this;this.tableEl=document.querySelector(e),this.tableEl&&(this.boxes=[].slice.call(this.tableEl.querySelectorAll("input[type=checkbox]")),this.rows=[].slice.call(document.querySelectorAll('tr[class^="row"]')),this.checkallToggle=document.querySelector('[name="checkall-toggle"]'),this.onCheckallToggleClick=this.onCheckallToggleClick.bind(this),this.onRowClick=this.onRowClick.bind(this),this.checkallToggle&&this.checkallToggle.addEventListener("click",this.onCheckallToggleClick),this.rows.length&&this.rows.forEach((function(e){e.addEventListener("click",t.onRowClick)})))}var o=t.prototype;return o.changeBg=function(e,t){t?[].slice.call(e.querySelectorAll("td, th")).forEach((function(e){e.classList.add("row-selected")})):[].slice.call(e.querySelectorAll("td, th")).forEach((function(e){e.classList.remove("row-selected")}))},o.onCheckallToggleClick=function(e){var t=this,o=e.target.checked;this.rows.forEach((function(e){t.changeBg(e,o)}))},o.onRowClick=function(t){var o=t.target,s=t.shiftKey;if((!o.tagName||"a"!==o.tagName.toLowerCase()&&"button"!==o.tagName.toLowerCase())&&this.boxes.length){var c=this.rows.indexOf(o.closest("tr")),l=this.checkallToggle?c+1:c,n=this.boxes[l].checked;l>=0&&(o.id!==this.boxes[l].id&&(s&&(document.body.style["-webkit-user-select"]="none",document.body.style["-moz-user-select"]="none",document.body.style["-ms-user-select"]="none",document.body.style["user-select"]="none"),this.boxes[l].checked=!this.boxes[l].checked,n=this.boxes[l].checked,e.isChecked(this.boxes[l].checked,this.tableEl.id)),this.changeBg(this.rows[l-1],n),s&&(document.body.style["-webkit-user-select"]="none",document.body.style["-moz-user-select"]="none",document.body.style["-ms-user-select"]="none",document.body.style["user-select"]="none"))}},t}();document.addEventListener("DOMContentLoaded",(function(){e?e.getOptions&&"function"==typeof e.getOptions&&e.getOptions("js-multiselect")&&(e.getOptions("js-multiselect").formName?new t("#"+e.getOptions("js-multiselect").formName):new t("#adminForm")):new t("#adminForm")}))}(Joomla)}();