forked from 0x2620/pandora
fix default infoview
This commit is contained in:
parent
f71334ae25
commit
b3c8a61ce6
1 changed files with 3 additions and 3 deletions
|
@ -425,12 +425,12 @@ pandora.ui.infoView = function(data) {
|
|||
|
||||
function formatValue(key, value) {
|
||||
var ret;
|
||||
if (key == 'year') {
|
||||
ret = formatLink(value, 'year');
|
||||
} else if (nameKeys.indexOf(key) > -1) {
|
||||
if (nameKeys.indexOf(key) > -1) {
|
||||
ret = formatLink(value.split(', '), 'name');
|
||||
} else if (listKeys.indexOf(key) > -1) {
|
||||
ret = formatLink(value.split(', '), key);
|
||||
} else if (['year', 'country'].indexOf(key) > -1) {
|
||||
ret = formatLink(value, key);
|
||||
} else {
|
||||
ret = value;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue