CoreFiles by mySites.guru
admin-template-toggle-assignment.js26 lines, 799 bytes, from Joomla_4.0.0-beta7-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta6
md5
9b36597cc452087b4b567a662b1ae1aa
sha1
69103d9665614ac2769dc2dde2e1ec4511fd3325
sha256
9072d3d2a1c896a1bc63db4faf0238972e71eb6080fd5ce529f24501fe086bf5
/**
* PLEASE DO NOT MODIFY THIS FILE. WORK ON THE ES6 VERSION.
* OTHERWISE YOUR CHANGES WILL BE REPLACED ON THE NEXT BUILD.
**/

/**
 * @copyright  (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
Joomla = window.Joomla || {};

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

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

The same content is in 2 releases, Joomla 4.0.0-beta6 to 4.0.0-beta7. See them all, or every version of this file.