loleaflet/src/core/Socket.js |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 6b0f0432cbf219efb223eb07427ee9b4745a9bd5
Author:     merttumer <mert.tu...@collabora.com>
AuthorDate: Mon May 27 15:05:46 2019 +0300
Commit:     merttumer <mert.tu...@collabora.com>
CommitDate: Mon May 27 16:48:21 2019 +0300

    Send postMessage after renaming the document
    
    Signed-off-by: merttumer <mert.tu...@collabora.com>

diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index a5a0e27e9..366918123 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -668,13 +668,10 @@ L.Socket = L.Class.extend({
                                        this._map.fire('postMessage', {
                                                msgId: 'File_Rename',
                                                args: {
-                                                       Values: {
-                                                               NewName: 
command.filename
-                                                       }
+                                                       NewName: 
command.filename
                                                }
                                        });
                                }
-
                        }
                        // var name = command.name; - ignored, we get the new 
name via the wopi's BaseFileName
                }
@@ -922,6 +919,9 @@ L.Socket = L.Class.extend({
                        else if (tokens[i].substring(0, 5) === 'name=') {
                                command.name = tokens[i].substring(5);
                        }
+                       else if (tokens[i].substring(0, 9) === 'filename=') {
+                               command.filename = tokens[i].substring(9);
+                       }
                        else if (tokens[i].substring(0, 5) === 'port=') {
                                command.port = tokens[i].substring(5);
                        }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to