CoreFiles by mySites.guru
multiselect-es5.min.js1 lines, 2,049 bytes, from Joomla_4.2.0-beta1-Beta-Full_Package.zip
Raw History Compare with 4.1.0-beta3
md5
bc9bb5c7dd02a35bbf07273aa8984f86
sha1
824bd8564a8e448f7f35cd8688cb26f9bc65be91
sha256
1ad16977b46d6b73d1e2380fb2acaaa191318c5d0b382e342c5cd27b3765c7eb
!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 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 5 releases, Joomla 4.2.0-alpha1 to 4.2.0-beta2. See them all, or every version of this file.