From 33c6faa4bea58ec127cb47a51be4d75b664231cb Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 17 Feb 2012 09:29:21 +0000 Subject: [PATCH] only split listKeys --- static/js/pandora/infoView.padma.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/infoView.padma.js b/static/js/pandora/infoView.padma.js index 2191fccf..58b3c80a 100644 --- a/static/js/pandora/infoView.padma.js +++ b/static/js/pandora/infoView.padma.js @@ -246,7 +246,8 @@ pandora.ui.infoView = function(data) { clickLink: pandora.clickLink, editable: key != 'duration', format: function(value) { - return key != 'duration' ? formatValue(value, key) + return key != 'duration' ? formatValue(listKeys.indexOf(key) >= 0 + ? value.split(', ') : value, key) : value < 60 ? Math.round(value) + ' sec' : Math.round(value / 60) + ' min'; }, @@ -509,7 +510,7 @@ pandora.ui.infoView = function(data) { var edit = {id: data.id}; if (key == 'title') { edit[key] = value; - } else if (listKeys.indexOf(key) > -1) { + } else if (listKeys.indexOf(key) >= 0) { edit[key] = value ? value.split(', ') : []; } else { edit[key] = value ? value : null;