- md5
- 52ac88b5179f9e5a75e6200e398be178
- sha1
- f62e3e5f9e65da74629559d85a1164d65153f45f
- sha256
- 3b2ec7173d911f43b7c463e9566528f33a049a5f1983d93b246557c763ee861c
function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}(function(a){'use strict';var b=function(){function b(a){var c=this;_classCallCheck(this,b),this.tableEl=document.querySelector(a),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(a){a.addEventListener("click",c.onRowClick)}))}return _createClass(b,[{key:"changeBg",value:function changeBg(a,b){b?[].slice.call(a.querySelectorAll("td, th")).forEach(function(a){a.classList.add("row-selected")}):[].slice.call(a.querySelectorAll("td, th")).forEach(function(a){a.classList.remove("row-selected")})}},{key:"onCheckallToggleClick",value:function onCheckallToggleClick(a){var b=this,c=a.target.checked;this.rows.forEach(function(a){b.changeBg(a,c)})}},{key:"onRowClick",value:function onRowClick(b){if(!(b.target.tagName&&("a"===b.target.tagName.toLowerCase()||"button"===b.target.tagName.toLowerCase()))&&this.boxes.length){var c=this.rows.indexOf(b.target.closest("tr")),d=this.checkallToggle?c+1:c,e=this.boxes[d].checked;0<=d&&(b.target.id!==this.boxes[d].id&&(b.shiftKey&&(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[d].checked=!this.boxes[d].checked,e=this.boxes[d].checked,a.isChecked(this.boxes[d].checked,this.tableEl.id)),this.changeBg(this.rows[d-1],e),b.shiftKey&&(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"))}}}]),b}();document.addEventListener("DOMContentLoaded",function onBoot(){a?a.getOptions&&"function"==typeof a.getOptions&&a.getOptions("js-multiselect")&&(a.getOptions("js-multiselect").formName?new b("#".concat(a.getOptions("js-multiselect").formName)):new b("#adminForm")):new b("#adminForm")})})(Joomla);
No other release has this exact content. See every version of this file.