CoreFiles by mySites.guru
admin-template-toggle-assignment.js28 lines, 867 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
77fe2bc993b4517131c62fb64b393758
sha1
f2ae4045a43b3b3d334aa499543ead498b153b81
sha256
c0022cee0f5d09efbb26f5411cf0585c3947401af9ebaa41f9f312adfc590f42
/**
* 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 || {};

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

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

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