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

Jan Holesovsky (via logerrit) logerrit at kemper.freedesktop.org
Fri Apr 10 13:48:52 UTC 2020


 loleaflet/src/control/Control.MobileWizard.js |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit cc7fb1cb67ba1612725d91ca8cf82fad942e5963
Author:     Jan Holesovsky <kendy at collabora.com>
AuthorDate: Fri Apr 10 13:53:54 2020 +0200
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Fri Apr 10 15:48:33 2020 +0200

    mobile: The mobile-wizard is mobile phone only.
    
    Don't try to instantiate it on desktop or tablet.
    
    Change-Id: I71bb0fa4e6fbd3edce0adbd803d858874640adca
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92013
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>

diff --git a/loleaflet/src/control/Control.MobileWizard.js b/loleaflet/src/control/Control.MobileWizard.js
index bb0b3d95d..c45f25753 100644
--- a/loleaflet/src/control/Control.MobileWizard.js
+++ b/loleaflet/src/control/Control.MobileWizard.js
@@ -25,6 +25,11 @@ L.Control.MobileWizard = L.Control.extend({
 
 	onAdd: function (map) {
 		this.map = map;
+
+		// for the moment, the mobile-wizard is mobile phone only
+		if (!window.mode.isMobile())
+			return;
+
 		map.on('mobilewizard', this._onMobileWizard, this);
 		map.on('closemobilewizard', this._hideWizard, this);
 		map.on('showwizardsidebar', this._showWizardSidebar, this);


More information about the Libreoffice-commits mailing list