CoreFiles by mySites.guru
admin-template-toggle-assignment.es6.js28 lines, 837 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
e4a284cbcfbfa65f25011c9d60cb8cc9
sha1
80c5935426a784242f9c73db190d349bff2fafe5
sha256
2c2d68bb46c6d3c4f6486abe4e3225d54cd803bc03f98c4c226e1061fb1550c6
/**
* PLEASE DO NOT MODIFY THIS FILE. WORK ON THE ES6 VERSION.
* OTHERWISE YOUR CHANGES WILL BE REPLACED ON THE NEXT BUILD.
**/

/**
 * @copyright  Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
Joomla = window.Joomla || {};

(Joomla => {
  Joomla.toggleAll = () => {
    const checkBoxes = [].slice.call(document.querySelectorAll('.chk-menulink'));
    const value = checkBoxes[0].checked;
    checkBoxes.forEach(checkBox => {
      checkBox.checked = !value;
    });
  };

  Joomla.toggleMenutype = a => {
    const checkBox = [].slice.call(document.getElementsByClassName("menutype-".concat(a)));
    const value = checkBox[0].checked;
    checkBox.forEach(element => {
      element.checked = !value;
    });
  };
})(Joomla);

No other release has this exact content. See every version of this file.