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

Mihai Varga mihai.varga at collabora.com
Fri Aug 7 01:13:27 PDT 2015


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

New commits:
commit 06c2f2ce2d6d8abf8fa3d386d7b539f31ea5c6e5
Author: Mihai Varga <mihai.varga at collabora.com>
Date:   Fri Aug 7 11:12:39 2015 +0300

    loleaflet: request lok session when entering edit mode

diff --git a/loleaflet/src/control/Permission.js b/loleaflet/src/control/Permission.js
index f6ed8ee..902afa7 100644
--- a/loleaflet/src/control/Permission.js
+++ b/loleaflet/src/control/Permission.js
@@ -5,6 +5,7 @@ L.Map.include({
 	setPermission: function (perm) {
 		this._docLayer._permission = perm;
 		if (perm === 'edit') {
+			this._docLayer.sendMessage('requestloksession');
 			this.dragging.disable();
 		}
 		else if (perm === 'view' || perm === 'readonly') {


More information about the Libreoffice-commits mailing list