From 7026a9ad069c44fae9504de8e0a8b7eba7e8eb1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20Zolnai?= Date: Mon, 23 Mar 2020 18:33:29 +0100 Subject: [PATCH] mobile: fix the class of toolbar-hamburger after close. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When we opened again it had both 'menuwizard-opened' and 'menuwizard-closed' classes. Change-Id: Ia47bff467f55639a7bebb8ba640604b2617a48d7 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90934 Tested-by: Jenkins CollaboraOffice Reviewed-by: Tamás Zolnai --- loleaflet/src/control/Control.Menubar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js index 643850b16..5d24b7ebf 100644 --- a/loleaflet/src/control/Control.Menubar.js +++ b/loleaflet/src/control/Control.Menubar.js @@ -902,7 +902,7 @@ L.Control.Menubar = L.Control.extend({ window.mobileMenuWizard = true; var menuData = self._map.menubar.generateFullMenuStructure(); self._map.fire('mobilewizard', menuData); - $('#toolbar-hamburger').addClass('menuwizard-opened'); + $('#toolbar-hamburger').removeClass('menuwizard-closed').addClass('menuwizard-opened'); $('#mobile-wizard-header').hide(); } } else if (!L.Browser.mobile) {