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) {
|
function formatValue(key, value) {
|
||||||
var ret;
|
var ret;
|
||||||
if (key == 'year') {
|
if (nameKeys.indexOf(key) > -1) {
|
||||||
ret = formatLink(value, 'year');
|
|
||||||
} else if (nameKeys.indexOf(key) > -1) {
|
|
||||||
ret = formatLink(value.split(', '), 'name');
|
ret = formatLink(value.split(', '), 'name');
|
||||||
} else if (listKeys.indexOf(key) > -1) {
|
} else if (listKeys.indexOf(key) > -1) {
|
||||||
ret = formatLink(value.split(', '), key);
|
ret = formatLink(value.split(', '), key);
|
||||||
|
} else if (['year', 'country'].indexOf(key) > -1) {
|
||||||
|
ret = formatLink(value, key);
|
||||||
} else {
|
} else {
|
||||||
ret = value;
|
ret = value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue