[Libreoffice-commits] online.git: loleaflet/src
Henry Castro (via logerrit)
logerrit at kemper.freedesktop.org
Mon Nov 4 21:24:01 UTC 2019
loleaflet/src/control/Control.MobileWizard.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit ad15c61e9b7bf2c0c3fcd2f42bff871de6b81e05
Author: Henry Castro <hcastro at collabora.com>
AuthorDate: Fri Nov 1 17:05:21 2019 -0400
Commit: Henry Castro <hcastro at collabora.com>
CommitDate: Mon Nov 4 22:23:43 2019 +0100
mobileWizard: avoid showing toolbar if it is not allowed
In view mode the function hideWizard it is forced to show the toolbar
Change-Id: Ib49501730fde1da65925db68b0b98baac2f15473
Reviewed-on: https://gerrit.libreoffice.org/81921
Reviewed-by: Henry Castro <hcastro at collabora.com>
Tested-by: Henry Castro <hcastro at collabora.com>
diff --git a/loleaflet/src/control/Control.MobileWizard.js b/loleaflet/src/control/Control.MobileWizard.js
index e0c8def4e..5dd43ed9b 100644
--- a/loleaflet/src/control/Control.MobileWizard.js
+++ b/loleaflet/src/control/Control.MobileWizard.js
@@ -58,7 +58,9 @@ L.Control.MobileWizard = L.Control.extend({
_hideWizard: function() {
$('#mobile-wizard').hide();
$('#mobile-wizard-content').empty();
- $('#toolbar-down').show();
+ if (this.map._permission === 'edit') {
+ $('#toolbar-down').show();
+ }
this._isActive = false;
this._currentPath = [];
if (window.mobileWizard === true) {
More information about the Libreoffice-commits
mailing list