[Libreoffice-commits] online.git: loleaflet/src

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


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

New commits:
commit a8cc95f8f21e117b542e93292d19ff88e8d270b4
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Thu Dec 12 13:01:02 2019 +0100
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Thu Dec 12 13:01:24 2019 +0100

    jsdialog: fix insert menu
    
    Change-Id: I97b21e3358f078d12c99718623303d3f096a8d46

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