forked from 0x2620/pandora
allow batch editing one document
This commit is contained in:
parent
f664927b5f
commit
3c73ef8999
1 changed files with 2 additions and 2 deletions
|
@ -729,11 +729,11 @@ pandora.uploadDroppedFiles = function(files) {
|
||||||
pandora.enableBatchEdit = function(section) {
|
pandora.enableBatchEdit = function(section) {
|
||||||
var ui = pandora.user.ui;
|
var ui = pandora.user.ui;
|
||||||
if (section == 'documents') {
|
if (section == 'documents') {
|
||||||
return !ui.document && ui.collectionSelection.length > 1 && ui.collectionSelection.some(function(item) {
|
return !ui.document && ui.collectionSelection.length > 0 && ui.collectionSelection.some(function(item) {
|
||||||
return pandora.$ui.list && pandora.$ui.list.value(item, 'editable');
|
return pandora.$ui.list && pandora.$ui.list.value(item, 'editable');
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
return !ui.item && ui.listSelection.length > 1 && ui.listSelection.some(function(item) {
|
return !ui.item && ui.listSelection.length > 0 && ui.listSelection.some(function(item) {
|
||||||
return pandora.$ui.list && pandora.$ui.list.value(item, 'editable');
|
return pandora.$ui.list && pandora.$ui.list.value(item, 'editable');
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue