loleaflet/src/control/Control.NotebookbarBuilder.js |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 1e92fd545106f0935231f5b5dce90734cef608ad
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Tue Sep 22 08:51:51 2020 +0200
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Tue Sep 22 09:43:55 2020 +0200

    notebookbar: toggle hamburger menu on click
    
    Change-Id: I3593f46ea962a225c56202fb07f804a2f69c151e
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103135
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>

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);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to