loleaflet/src/control/Toolbar.js | 6 +++++- loleaflet/src/map/Map.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-)
New commits: commit b482dfba567b448e8ecbee5e7b0bbbf04fa2c290 Author: Pranav Kant <pran...@collabora.com> Date: Wed Feb 10 16:49:52 2016 +0530 loleaflet: Fix wrong initializationcomplete signal This should ideally be fired when we receive 'commandvalues' command, not 'statechanged'. Change-Id: I34748979a7606cd50e6965850757eda891a9aa15 diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js index e001a29..015b0a5 100644 --- a/loleaflet/src/map/Map.js +++ b/loleaflet/src/map/Map.js @@ -94,7 +94,7 @@ L.Map = L.Evented.extend({ } this._fireInitComplete('updatepermission'); }); - this.on('commandstatechanged', function(e){ + this.on('updatetoolbarcommandvalues', function(e){ if (this.initComplete) { return; } commit f41b9c7703c07e6459bca90c7fed5088568d2a0a Author: Jan Holesovsky <ke...@collabora.com> Date: Wed Feb 10 14:45:36 2016 +0100 loleaflet: Send 'saveas' with the 'TakeOwnership' option. So that the .uno:ModifiedStatus works. diff --git a/loleaflet/src/control/Toolbar.js b/loleaflet/src/control/Toolbar.js index 05bcf8a..1488b7d 100644 --- a/loleaflet/src/control/Toolbar.js +++ b/loleaflet/src/control/Toolbar.js @@ -57,10 +57,14 @@ L.Map.include({ if (options === undefined || options === null) { options = ''; } + + // TakeOwnership: we are performing a 'real' save-as, the document + // is just getting a new place, ie. it will get the + // '.uno:ModifiedStatus' upon completion. this._socket.sendMessage('saveas ' + 'url=' + url + ' ' + 'format=' + format + ' ' + - 'options=' + options); + 'options=TakeOwnership,' + options); }, applyStyle: function (style, familyName) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits