[Libreoffice-commits] online.git: loleaflet/src

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Mar 12 09:26:26 UTC 2019


 loleaflet/src/control/Permission.js |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 5cafda5fd26d28d8d34d04473a8ef3930925e0a7
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Mar 12 10:24:13 2019 +0100
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Tue Mar 12 10:26:04 2019 +0100

    Send init commands after mobile is switched to edit mode

diff --git a/loleaflet/src/control/Permission.js b/loleaflet/src/control/Permission.js
index 76c1ff7b2..37ad81a05 100644
--- a/loleaflet/src/control/Permission.js
+++ b/loleaflet/src/control/Permission.js
@@ -36,6 +36,9 @@ L.Map.include({
 	},
 
 	_enterEditMode: function (perm) {
+		if (this._permission == 'readonly' && L.Browser.mobile) {
+			this.sendInitUNOCommands();
+		}
 		this._permission = perm;
 
 		this._socket.sendMessage('requestloksession');


More information about the Libreoffice-commits mailing list