From 8b21a69c56098a3b5fab86e6d9d449e99d351de1 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 5 Oct 2012 14:19:29 +0200 Subject: [PATCH] use Ox.formatColorPercent --- static/js/pandora/infoView.0xdb.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/static/js/pandora/infoView.0xdb.js b/static/js/pandora/infoView.0xdb.js index 5f0dd9c4..8c05d25b 100644 --- a/static/js/pandora/infoView.0xdb.js +++ b/static/js/pandora/infoView.0xdb.js @@ -461,11 +461,7 @@ pandora.ui.infoView = function(data) { $('
') .css({marginBottom: '4px'}) .append(formatKey(key == 'votes' ? 'Mainstream Score' : 'Arthouse Score'), true) - .append( - Ox.Theme.formatColor(Math.sqrt(value) * 12, 'hue') - .css({textAlign: 'right'}) - .html(Ox.formatNumber(value, 1) + '%') - ) + .append(Ox.Theme.formatColorPercent(value, 1, true)) .appendTo($statistics); });