CoreFiles by mySites.guru
admin-template-toggle-assignment-es5.js26 lines, 742 bytes, from Joomla_4.2.2-Stable-Full_Package.zip
Raw History Compare with 4.2.1
md5
ebc0970a4b95006834724c94178e6d01
sha1
272df4d444fd1862a3395eb3321821506ba810b4
sha256
8fc3361a3bb3735cc3f73a837387806424efa910b266b167a91a6b218255f4a7
(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 45 releases, Joomla 4.0.6-rc1 to 4.2.9. See them all, or every version of this file.