[Libreoffice-commits] online.git: Branch 'distro/collabora/co-4-2-0' - loleaflet/src

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Thu Dec 12 12:14:47 UTC 2019


 loleaflet/src/control/Control.MobileWizard.js |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 7e42d75fbf8267d069df1522e14fd7f21bb089c6
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Thu Dec 12 13:01:02 2019 +0100
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Thu Dec 12 13:14:29 2019 +0100

    jsdialog: fix insert menu
    
    Change-Id: I97b21e3358f078d12c99718623303d3f096a8d46
    Reviewed-on: https://gerrit.libreoffice.org/85047
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/loleaflet/src/control/Control.MobileWizard.js b/loleaflet/src/control/Control.MobileWizard.js
index 2bf3ffc1f..4b8982d50 100644
--- a/loleaflet/src/control/Control.MobileWizard.js
+++ b/loleaflet/src/control/Control.MobileWizard.js
@@ -58,7 +58,6 @@ L.Control.MobileWizard = L.Control.extend({
 	_showWizard: function() {
 		$('#mobile-wizard').show();
 		$('#toolbar-down').hide();
-		this._refreshSidebar();
 	},
 
 	_showWizardSidebar: function() {
@@ -234,11 +233,14 @@ L.Control.MobileWizard = L.Control.extend({
 
 	_onMobileWizard: function(data) {
 		if (data) {
-			var isSidebar = data.id !== 'menubar' && data.id !== 'insertshape' && data.id !== 'funclist';
+			var isSidebar = data.id !== 'insert' && data.id !== 'menubar'
+				&& data.id !== 'insertshape' && data.id !== 'funclist';
 
 			if (!this._isActive && isSidebar) {
 				if (this.map.showSidebar == false)
 					return;
+				else
+					this._refreshSidebar();
 			}
 
 			this._isActive = true;


More information about the Libreoffice-commits mailing list