CoreFiles by mySites.guru
admin-template-toggle-assignment-es5.js25 lines, 741 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
0a69971a601467bc009109c96372ac50
sha1
890e965bb1a693bca90486bb28cb4cc4d15c077a
sha256
05cf439608d9857908dbfef300373a05a9c26382214362731e459f1edbfd23e7
(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 57 releases, Joomla 4.3.0-alpha1 to 5.0.0-alpha1. See them all, or every version of this file.