[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-4' - loleaflet/src

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


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

New commits:
commit cee52939e56d1899560bee02fb8eca04aa7246b7
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:25:35 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