芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/hocabayucatan.gob.mx/media/com_templates/js/admin-template-toggle-assignment.js
/** * @copyright (C) 2019 Open Source Matters, Inc.
* @license GNU General Public License version 2 or later; see LICENSE.txt */ Joomla = window.Joomla || {}; (Joomla => { Joomla.toggleAll = () => { const checkBoxes = [].slice.call(document.querySelectorAll('.chk-menulink')); checkBoxes.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);