diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2020-09-22 08:51:51 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2020-09-22 09:43:55 +0200 |
commit | 1e92fd545106f0935231f5b5dce90734cef608ad (patch) | |
tree | 67d7787ef7a5e8b7693d0cb9878969ad12011b45 | |
parent | 31c931658d5f7ed453a05085c3286f70fe769e46 (diff) |
notebookbar: toggle hamburger menu on click
Change-Id: I3593f46ea962a225c56202fb07f804a2f69c151e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103135
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
-rw-r--r-- | loleaflet/src/control/Control.NotebookbarBuilder.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/loleaflet/src/control/Control.NotebookbarBuilder.js b/loleaflet/src/control/Control.NotebookbarBuilder.js index d0b507564..333240b1f 100644 --- a/loleaflet/src/control/Control.NotebookbarBuilder.js +++ b/loleaflet/src/control/Control.NotebookbarBuilder.js @@ -348,7 +348,6 @@ L.Control.NotebookbarBuilder = L.Control.JSDialogBuilder.extend({ $(control.container).unbind('click'); $(control.container).click(function () { - console.log(builder.options.map); L.control.menubar()._executeAction.bind({_map: builder.options.map})(undefined, {id: data.id}); }); }, @@ -715,6 +714,9 @@ L.Control.NotebookbarBuilder = L.Control.JSDialogBuilder.extend({ }); $(menuHtml[0]).children('a').html('<span id="shortcuts-menubar-icon"></span>'); + $(menuHtml[0]).children('a').click(function () { + $(control.container).smartmenus('menuHideAll'); + }); $(control.container).bind('beforeshow.smapi', {self: menubar}, menubar._beforeShow); $(control.container).bind('click.smapi', {self: menubar}, menubar._onClicked); |