From b49dceb63ff9d65d8d0d6e963bd7854a97353e0c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 9 Jul 2014 12:59:28 +0000 Subject: [PATCH] show instances of all selected files, fixes #2424 --- static/js/mediaView.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/mediaView.js b/static/js/mediaView.js index 75a417f7..5fafd801 100644 --- a/static/js/mediaView.js +++ b/static/js/mediaView.js @@ -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(); }