芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/www/media/templates/site/cassiopeia/js/mod_menu/menu-metismenu-es5.js
(function () { 'use strict'; /** * @package Joomla.Site * @subpackage Templates.cassiopeia * @copyright (C) 2020 Open Source Matters, Inc.
* @license GNU General Public License version 2 or later; see LICENSE.txt * @since 4.0.0 */ document.addEventListener('DOMContentLoaded', function () { var allMenus = document.querySelectorAll('ul.mod-menu_dropdown-metismenu'); allMenus.forEach(function (menu) { // eslint-disable-next-line no-new, no-undef var mm = new MetisMenu(menu, { triggerElement: 'button.mm-toggler' }).on('shown.metisMenu', function (event) { window.addEventListener('click', function mmClick(e) { if (!event.target.contains(e.target)) { mm.hide(event.detail.shownElement); window.removeEventListener('click', mmClick); } }); }); }); }); }());