forked from 0x2620/pandora
show instances of all selected files, fixes #2424
This commit is contained in:
parent
6b15454a18
commit
b49dceb63f
1 changed files with 3 additions and 2 deletions
|
@ -571,8 +571,9 @@ pandora.ui.mediaView = function(options) {
|
|||
function selectFiles(data) {
|
||||
self.selected = data.ids;
|
||||
self.$instancesList.options({
|
||||
items: data.ids.length == 1
|
||||
? self.$filesList.value(data.ids[0], 'instances') : []
|
||||
items: Ox.flatten(data.ids.map(function(id) {
|
||||
return self.$filesList.value(id, 'instances');
|
||||
}))
|
||||
});
|
||||
updateForm();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue