fix #47, director is an array

This commit is contained in:
j 2011-10-27 11:33:25 +02:00
parent dd8aee522c
commit 4aab40797d

View file

@ -408,7 +408,11 @@ pandora.ui.filesView = function(options, self) {
}, function(result) { }, function(result) {
['title', 'director', 'year'].forEach(function(key) { ['title', 'director', 'year'].forEach(function(key) {
if (result.data[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(); updateForm();