add to current item
This commit is contained in:
parent
40edf9dd4a
commit
1c0462393c
3 changed files with 33 additions and 29 deletions
|
|
@ -270,10 +270,16 @@ pandora.ui.addItemDialog = function(options) {
|
|||
} else {
|
||||
$screen.stop();
|
||||
that.close();
|
||||
pandora.ui.addFilesDialog({
|
||||
action: selected,
|
||||
items: items
|
||||
}).open();
|
||||
(pandora.user.ui.item ? pandora.api.get : Ox.noop)({
|
||||
id: pandora.user.ui.item,
|
||||
keys: ['editable']
|
||||
}, function(result) {
|
||||
pandora.ui.addFilesDialog({
|
||||
action: selected,
|
||||
items: items,
|
||||
editable: pandora.user.ui.item && result.data.editable
|
||||
}).open();
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue