CoreFiles by mySites.guru
multiselect-es5.min.js1 lines, 2,134 bytes, from Joomla_4.0.3-Stable-Full_Package.zip
Raw History Compare with 4.0.2
md5
45beef05732088ca841c7274c21f6dda
sha1
7e846362a71d4b54248ad631c32d804832675b71
sha256
544731c341d013e79a6a971e75c60e1301406b254f637a7d4df097638c3b0118
!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)}();

The same content is in 29 releases, Joomla 4.0.0-rc1 to 4.1.0-rc1. See them all, or every version of this file.