fix document import

This commit is contained in:
j 2018-11-05 20:27:03 +00:00
commit ce234bdea5
4 changed files with 19 additions and 10 deletions

View file

@ -27,7 +27,7 @@ pandora.localInit = function() {
$item = Ox.MenuButton({
items: [
].concat(pandora.user.level == 'admin' ? [
] : [], [
] : [], pandora.user.level == 'gurest' ? [] : [
{id: 'import_documents', title: 'Import Documents...'},
]),
style: 'rounded',
@ -37,7 +37,7 @@ pandora.localInit = function() {
}).css(css).bindEvent({
click: function(data) {
if (data.id == 'import_documents') {
pandora.ui.importDocumentsDialog().open()
pandora.ui.importDocumentsDialog().open();
}
},
}),