show instances of all selected files, fixes #2424

This commit is contained in:
j 2014-07-09 12:59:28 +00:00
parent 6b15454a18
commit b49dceb63f

View file

@ -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();
}