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
This commit is contained in:
parent
92c068541a
commit
caa3ea2348
1 changed files with 0 additions and 9 deletions
9
loleaflet/dist/toolbar/toolbar.js
vendored
9
loleaflet/dist/toolbar/toolbar.js
vendored
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue