[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 (function () { 2 'use strict'; 3 4 /** 5 * @package Joomla.Site 6 * @subpackage Templates.cassiopeia 7 * @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 * @since 4.0.0 10 */ 11 document.addEventListener('DOMContentLoaded', function () { 12 var allMenus = document.querySelectorAll('ul.mod-menu_dropdown-metismenu'); 13 allMenus.forEach(function (menu) { 14 // eslint-disable-next-line no-new, no-undef 15 var mm = new MetisMenu(menu, { 16 triggerElement: 'button.mm-toggler' 17 }).on('shown.metisMenu', function (event) { 18 window.addEventListener('click', function mmClick(e) { 19 if (!event.target.contains(e.target)) { 20 mm.hide(event.detail.shownElement); 21 window.removeEventListener('click', mmClick); 22 } 23 }); 24 }); 25 }); 26 }); 27 28 })();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |