fix #47, director is an array
This commit is contained in:
parent
dd8aee522c
commit
4aab40797d
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue