From b3c8a61ce6b737d974a56131b32a530130cf8399 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 28 Aug 2016 13:32:21 +0200 Subject: [PATCH] fix default infoview --- static/js/infoView.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/infoView.js b/static/js/infoView.js index 274401e57..a23f81bb5 100644 --- a/static/js/infoView.js +++ b/static/js/infoView.js @@ -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; }