芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/media.8/com_templates/js/admin-template-toggle-assignment-es5.js
(function () { 'use strict'; /** * @copyright (C) 2019 Open Source Matters, Inc.
* @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); }());