mobile: fix the class of toolbar-hamburger after close.

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 <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
This commit is contained in:
Tamás Zolnai 2020-03-23 18:33:29 +01:00
parent 823207f244
commit 7026a9ad06

View file

@ -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) {