CoreFiles by mySites.guru
multiselect-es5.min.js1 lines, 2,046 bytes, from Joomla_4.1.2-Stable-Full_Package.zip
Raw History Compare with 4.1.1
md5
a11b92768592ff5c1c9a18f37fdf3855
sha1
d7216717c83319f5fe3efa6141b421e819e188b2
sha256
f3729c0c784f02b3af9bfb70afcb6c9e16e70a5443dfc6457a5fc24210cdbcdf
!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,c=t.shiftKey;if((!o.tagName||"a"!==o.tagName.toLowerCase()&&"button"!==o.tagName.toLowerCase())&&this.boxes.length){var s=this.rows.indexOf(o.closest("tr")),l=this.checkallToggle?s+1:s,n=this.boxes[l].checked;l>=0&&(o.id!==this.boxes[l].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"),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),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)}();

The same content is in 15 releases, Joomla 4.1.0-rc2 to 4.1.5. See them all, or every version of this file.