CoreFiles by mySites.guru
admin-template-toggle-assignment-es5.js26 lines, 742 bytes, from Joomla_4.0.2-Stable-Full_Package.zip
Raw History Compare with 4.0.1
md5
cac63e743f9bd8ca47e79efb74a8db4d
sha1
68c147723e834f83cbfeb3b82e305e30f3f49b88
sha256
73ca84e277d78d588d85560079f2ee3f8aeac34dd8d80f9e4f0ca680a70e63b3
(function () {
  'use strict';

  /**
   * @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-" + a));
      checkBox.forEach(function (element) {
        element.checked = !element.checked;
      });
    };
  })(Joomla);

}());

The same content is in 23 releases, Joomla 4.0.0-rc1 to 4.1.0-beta2. See them all, or every version of this file.