From 507e856cf453cf2cad935a13ecc181e1640b0e3e Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 28 Oct 2011 19:43:07 +0000 Subject: [PATCH] fix a bug with formatted info texts in timelines and clips views --- static/js/pandora/list.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/static/js/pandora/list.js b/static/js/pandora/list.js index 865689eb..306cdec5 100644 --- a/static/js/pandora/list.js +++ b/static/js/pandora/list.js @@ -287,10 +287,15 @@ pandora.ui.list = function() { info = data['year']; } else { format = pandora.getSortKeyData(sortKey).format; - info = format - ? Ox['format' + Ox.toTitleCase(format.type)] - .apply(this, Ox.merge([data[sortKey]], format.args || [])) - : data[sortKey]; + if (format) { + info = ( + /^color/.test(format.type.toLowerCase()) ? Ox.Theme : Ox + )['format' + Ox.toTitleCase(format.type)].apply( + this, Ox.merge([data[sortKey]], format.args || []) + ); + } else { + info = data[sortKey]; + } } return { icon: {