[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/media/system/js/ -> multiselect-es5.min.js (source)

   1  !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("td 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,c=t.shiftKey;if((!o.tagName||"a"!==o.tagName.toLowerCase()&&"button"!==o.tagName.toLowerCase())&&this.boxes.length){var l=o.closest("tr"),s=this.rows.indexOf(l),n=l.querySelector("td input[type=checkbox]");if(n){var i=n.checked;o.id!==n.id&&(c&&(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"),n.checked=!n.checked,i=n.checked,e.isChecked(i,this.tableEl.id)),this.changeBg(this.rows[s],i),c&&(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(){var o="#adminForm";e&&e.getOptions("js-multiselect",{}).formName&&(o="#"+e.getOptions("js-multiselect",{}).formName),new t(o)}))}(Joomla)}();


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer