[Libreoffice-commits] online.git: loleaflet/src
Jan Holesovsky (via logerrit)
logerrit at kemper.freedesktop.org
Tue Apr 14 17:51:50 UTC 2020
loleaflet/src/control/Control.MobileWizard.js | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 4d49156ff22267f1b7e6d88787bc81e7e6efc764
Author: Jan Holesovsky <kendy at collabora.com>
AuthorDate: Fri Apr 10 13:53:54 2020 +0200
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Tue Apr 14 19:51:31 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/+/92034
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Jan Holesovsky <kendy 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