[Libreoffice-commits] online.git: loleaflet/src
Mihai Varga
mihai.varga at collabora.com
Tue Sep 15 00:06:22 PDT 2015
loleaflet/src/control/Toolbar.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit fc96bad0dec84ae0c4b45e8f5573bcaccf4cf7e1
Author: Mihai Varga <mihai.varga at collabora.com>
Date: Tue Sep 15 10:05:51 2015 +0300
loleaflet: toogleCommandState with uno
diff --git a/loleaflet/src/control/Toolbar.js b/loleaflet/src/control/Toolbar.js
index 9a1bbfa..b8b316d 100644
--- a/loleaflet/src/control/Toolbar.js
+++ b/loleaflet/src/control/Toolbar.js
@@ -60,7 +60,10 @@ L.Map.include({
toggleCommandState: function (unoState) {
if (this._docLayer._permission === 'edit') {
- L.Socket.sendMessage('uno .uno:' + unoState);
+ if (!unoState.startsWith('.uno:')) {
+ unoState = '.uno:' + unoState;
+ }
+ L.Socket.sendMessage('uno ' + unoState);
}
}
});
More information about the Libreoffice-commits
mailing list