loleaflet/dist/toolbar/toolbar.js |    9 ---------
 1 file changed, 9 deletions(-)

New commits:
commit caa3ea23482a083bd60149a105bb1c68478f069c
Author: Pranav Kant <pran...@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');
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to