fix default infoview

This commit is contained in:
j 2016-08-28 13:32:21 +02:00
parent f71334ae25
commit b3c8a61ce6

View file

@ -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;
}