[Libreoffice-commits] online.git: loleaflet/dist
Pranav Kant
pranavk at collabora.com
Wed May 4 11:20:41 UTC 2016
loleaflet/dist/toolbar/toolbar.js | 9 ---------
1 file changed, 9 deletions(-)
New commits:
commit caa3ea23482a083bd60149a105bb1c68478f069c
Author: Pranav Kant <pranavk at collabora.com>
Date: Wed May 4 13:40:50 2016 +0530
loleaflet: Don't enable/disable toolbar items based on permission
For the time being, till we have the editlock, only
enable/disable toolbar items based on it.
Change-Id: I71b5be33e2ec706def198471274df60a22d7ee65
diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index 9d2075d..96541a3 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -557,15 +557,6 @@ function onFormulaBarBlur() {
map.on('updatepermission', function (e) {
var toolbar = w2ui['toolbar-up'];
- formatButtons.forEach(function (id) {
- if (e.perm === 'edit') {
- toolbar.enable(id);
- }
- else {
- toolbar.disable(id);
- }
- });
-
var docType = map.getDocType();
if (docType !== 'text') {
toolbar.hide('writer:menu:file');
More information about the Libreoffice-commits
mailing list