loleaflet/src/core/Socket.js | 1 + loleaflet/src/map/Map.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-)
New commits: commit ff906d83b74cba0c5b6739e685f026e876ed917f Author: Jan Holesovsky <ke...@collabora.com> AuthorDate: Sun Feb 10 11:16:24 2019 +0100 Commit: Jan Holesovsky <ke...@collabora.com> CommitDate: Sun Feb 10 11:16:24 2019 +0100 saveas: Explicitly ask for the command values only on saveas: The loadDocument() is called from many places, let's isolate the explicit call to sendInitUnoCommands() only to the SaveAs case. Change-Id: I685152d9915ee17e9f5b464aed27cf2d06075447 diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js index 7a96445e9..741cfe3a7 100644 --- a/loleaflet/src/core/Socket.js +++ b/loleaflet/src/core/Socket.js @@ -705,6 +705,7 @@ L.Socket = L.Class.extend({ this._map.options.doc = docUrl; this._map.options.wopiSrc = encodeURIComponent(docUrl); this._map.loadDocument(); + this._map.sendInitUNOCommands(); } // var name = command.name; - ignored, we get the new name via the wopi's BaseFileName } diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js index 6880b4b1b..92d36160c 100644 --- a/loleaflet/src/map/Map.js +++ b/loleaflet/src/map/Map.js @@ -224,7 +224,6 @@ L.Map = L.Evented.extend({ loadDocument: function() { this._socket.connect(); - this.sendInitUNOCommands(); }, sendInitUNOCommands: function() { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits