From 4c6a5e24e92ecc3ea51ee382e019b56033b0aa93 Mon Sep 17 00:00:00 2001 From: Jeroen Dalsem Date: Thu, 1 Aug 2024 12:34:41 +0200 Subject: [PATCH] added: clicking on iconbar will open first level if submenu opened --- views/default/navigation/menu/site.js.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/views/default/navigation/menu/site.js.php b/views/default/navigation/menu/site.js.php index 8e020a7..f1c3477 100644 --- a/views/default/navigation/menu/site.js.php +++ b/views/default/navigation/menu/site.js.php @@ -155,4 +155,12 @@ classNames: { menu.API.close(); }); }); + + $menu_selector.on('click', '.mm-panels', function(event) { + if (!$(event.target).hasClass('mm-panels')) { + return; + } + + menu.API.openPanel($menu_selector.find('#mm-1')[0]); + }); });