indiancinema info view: make year a link

This commit is contained in:
rolux 2013-03-11 13:29:28 +05:30
parent 943298f061
commit 96fbdc7626

View file

@ -552,7 +552,9 @@ pandora.ui.infoView = function(data) {
function formatValue(key, value) {
var ret;
if (nameKeys.indexOf(key) > -1) {
if (key == 'year') {
ret = formatLink(value);
else if (nameKeys.indexOf(key) > -1) {
ret = formatLink(value.split(', '), 'name');
} else if (listKeys.indexOf(key) > -1) {
ret = formatLink(value.split(', '), key);