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) {
|
function selectFiles(data) {
|
||||||
self.selected = data.ids;
|
self.selected = data.ids;
|
||||||
self.$instancesList.options({
|
self.$instancesList.options({
|
||||||
items: data.ids.length == 1
|
items: Ox.flatten(data.ids.map(function(id) {
|
||||||
? self.$filesList.value(data.ids[0], 'instances') : []
|
return self.$filesList.value(id, 'instances');
|
||||||
|
}))
|
||||||
});
|
});
|
||||||
updateForm();
|
updateForm();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue