[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-4' - loleaflet/src
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Feb 7 11:21:23 UTC 2019
loleaflet/src/map/Map.js | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit 3c9efeaad21159c11b43af614907ef9e5ddc6a61
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Thu Feb 7 11:34:19 2019 +0100
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Thu Feb 7 12:12:32 2019 +0100
Get languages, annotations, fonts on reload
Change-Id: If713092dab75bb744cf9c584a30006558d8d738c
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index fe40b2dd8..6880b4b1b 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -224,6 +224,15 @@ L.Map = L.Evented.extend({
loadDocument: function() {
this._socket.connect();
+ this.sendInitUNOCommands();
+ },
+
+ sendInitUNOCommands: function() {
+ // TODO: remove duplicated init code
+ this._socket.sendMessage('commandvalues command=.uno:LanguageStatus');
+ this._socket.sendMessage('commandvalues command=.uno:ViewAnnotations');
+ this.fire('updatescrolloffset');
+ this._docLayer._getToolbarCommandsValues();
},
// public methods that modify map state
More information about the Libreoffice-commits
mailing list