From 4aab40797d00df1675f7ed1fd87c118a340db1b5 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 27 Oct 2011 11:33:25 +0200 Subject: [PATCH] fix #47, director is an array --- static/js/pandora/filesView.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/filesView.js b/static/js/pandora/filesView.js index e67162cf..5f847cae 100644 --- a/static/js/pandora/filesView.js +++ b/static/js/pandora/filesView.js @@ -408,7 +408,11 @@ pandora.ui.filesView = function(options, self) { }, function(result) { ['title', 'director', 'year'].forEach(function(key) { if (result.data[key]) { - self['$' + key + 'Input'].options({value: result.data[key]}); + self['$' + key + 'Input'].options({ + value: key == 'director' + ? result.data[key].join(', ') + : result.data[key] + }); } }); updateForm();