use Ox.formatColorPercent

This commit is contained in:
rolux 2012-10-05 14:19:29 +02:00
parent af9a038c19
commit 8b21a69c56

View file

@ -461,11 +461,7 @@ pandora.ui.infoView = function(data) {
$('<div>') $('<div>')
.css({marginBottom: '4px'}) .css({marginBottom: '4px'})
.append(formatKey(key == 'votes' ? 'Mainstream Score' : 'Arthouse Score'), true) .append(formatKey(key == 'votes' ? 'Mainstream Score' : 'Arthouse Score'), true)
.append( .append(Ox.Theme.formatColorPercent(value, 1, true))
Ox.Theme.formatColor(Math.sqrt(value) * 12, 'hue')
.css({textAlign: 'right'})
.html(Ox.formatNumber(value, 1) + '%')
)
.appendTo($statistics); .appendTo($statistics);
}); });