CoreFiles by mySites.guru
multiselect.min.js1 lines, 1,906 bytes, from Joomla_4.1.2-Stable-Full_Package.zip
Raw History Compare with 4.1.1
md5
55d8e190419b5f3693fe5e1333b9dd68
sha1
a78c7c2184ee83021253d01ce4a5da167199f3c0
sha256
82813abf50b4235f631ef90f05d42940990713b219b0824dc3838d2f1f948af3
(e=>{class t{constructor(e){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((e=>{e.addEventListener("click",this.onRowClick)})))}changeBg(e,t){t?[].slice.call(e.querySelectorAll("td, th")).forEach((e=>{e.classList.add("row-selected")})):[].slice.call(e.querySelectorAll("td, th")).forEach((e=>{e.classList.remove("row-selected")}))}onCheckallToggleClick({target:e}){const t=e.checked;this.rows.forEach((e=>{this.changeBg(e,t)}))}onRowClick({target:t,shiftKey:s}){if(t.tagName&&("a"===t.tagName.toLowerCase()||"button"===t.tagName.toLowerCase()))return;if(!this.boxes.length)return;const l=this.rows.indexOf(t.closest("tr")),o=this.checkallToggle?l+1:l;let c=this.boxes[o].checked;o>=0&&(t.id!==this.boxes[o].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[o].checked=!this.boxes[o].checked,c=this.boxes[o].checked,e.isChecked(this.boxes[o].checked,this.tableEl.id)),this.changeBg(this.rows[o-1],c),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"))}}document.addEventListener("DOMContentLoaded",(()=>{let s="#adminForm";e&&e.getOptions("js-multiselect",{}).formName&&(s=`#${e.getOptions("js-multiselect",{}).formName}`),new t(s)}))})(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.