loleaflet/src/map/handler/Map.WOPI.js |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit fc3a059e751c3dbc1fbfee6cb7210cb8adc0aae2
Author: Aleksander Machniak <machn...@kolabsys.com>
Date:   Mon Nov 14 11:49:58 2016 +0100

    Fix setting DontTerminateEdit/DontSaveIfUnmodified arguments in Action_Save 
postMessage
    
    Change-Id: I61a2064104b1748571036891ff7696c1a1e6a3d2
    Reviewed-on: https://gerrit.libreoffice.org/30842
    Reviewed-by: pranavk <pran...@collabora.co.uk>
    Tested-by: pranavk <pran...@collabora.co.uk>

diff --git a/loleaflet/src/map/handler/Map.WOPI.js 
b/loleaflet/src/map/handler/Map.WOPI.js
index 1281baf..766db04 100644
--- a/loleaflet/src/map/handler/Map.WOPI.js
+++ b/loleaflet/src/map/handler/Map.WOPI.js
@@ -48,8 +48,8 @@ L.Map.WOPI = L.Handler.extend({
                        this._map._socket.sendMessage('closedocument');
                }
                else if (msg.MessageId === 'Action_Save') {
-                       var dontTerminateEdit = e.Values && 
e.Values['DontTerminateEdit'];
-                       var dontSaveIfUnmodified = e.Values && 
e.Values['DontSaveIfUnmodified'];
+                       var dontTerminateEdit = msg.Values && 
msg.Values['DontTerminateEdit'];
+                       var dontSaveIfUnmodified = msg.Values && 
msg.Values['DontSaveIfUnmodified'];
 
                        this._map.save(dontTerminateEdit, dontSaveIfUnmodified);
                }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to