[Libreoffice-commits] online.git: loleaflet/src
Szymon Kłos (via logerrit)
logerrit at kemper.freedesktop.org
Tue Oct 29 18:57:51 UTC 2019
loleaflet/src/map/handler/Map.WOPI.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit cb95e25d69bca921695f0dc1f5c8127fc1b37245
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Thu Jun 6 13:51:14 2019 +0200
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Tue Oct 29 19:57:29 2019 +0100
Allow to show/hide toolbar buttons on mobile
Change-Id: I7fdc68be5da3442cf4ac20cbd6e080d9b38a83b8
diff --git a/loleaflet/src/map/handler/Map.WOPI.js b/loleaflet/src/map/handler/Map.WOPI.js
index 8891866de..9c3201554 100644
--- a/loleaflet/src/map/handler/Map.WOPI.js
+++ b/loleaflet/src/map/handler/Map.WOPI.js
@@ -170,7 +170,7 @@ L.Map.WOPI = L.Handler.extend({
console.error('Property "Values.id" not set');
return;
}
- var toolbar = w2ui['editbar'];
+ var toolbar = w2ui['toolbar-up'] ? w2ui['toolbar-up'] : (w2ui['actionbar'] ? w2ui['actionbar'] : w2ui['editbar']);
if (!toolbar || !toolbar.get(msg.Values.id)) {
console.error('Toolbar button with id "' + msg.Values.id + '" not found.');
return;
More information about the Libreoffice-commits
mailing list