CoreFiles by mySites.guru
admin-template-toggle-assignment.js26 lines, 812 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
31658ab4f80f1c328157fc3d07d2af15
sha1
6b3f0bd5a444f7d678f2784f5374895689a4953b
sha256
f51ffe3314d0ba31915d1a78d22e916ffdae8c60898391203e8c66e788bea2b2
/**
* 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 - 2020 Open Source Matters, Inc. All rights reserved.
 * @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 5 releases, Joomla 4.0.0-beta to 4.0.0-beta5. See them all, or every version of this file.