CoreFiles by mySites.guru
admin-template-toggle-assignment.js19 lines, 580 bytes, from Joomla_5.3.2-Stable-Full_Package.zip
Raw History Compare with 5.3.1
md5
cd272852d46247918e63774341e40bd7
sha1
9d672fbfad513ac44a077feab39b943102b3779f
sha256
e3d53920d8ba9afbcb149a3601e6f08fc5f6a8e86f9869bbfde1763810dff287
/**
 * @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 || {};
(Joomla => {
  Joomla.toggleAll = () => {
    document.querySelectorAll('.chk-menulink').forEach(checkBox => {
      checkBox.checked = !checkBox.checked;
    });
  };
  Joomla.toggleMenutype = a => {
    const checkBox = [].slice.call(document.getElementsByClassName(`menutype-${a}`));
    checkBox.forEach(element => {
      element.checked = !element.checked;
    });
  };
})(Joomla);

The same content is in 135 releases, Joomla 5.1.0-beta2 to 6.3.0-alpha1. See them all, or every version of this file.