From 2b50ba84bfbeaa8f10ca49d0088b135812734511 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 24 Jun 2012 17:41:44 +0200 Subject: [PATCH] Ox.rgb now returns integers --- static/js/pandora/statisticsDialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/statisticsDialog.js b/static/js/pandora/statisticsDialog.js index f9b40d27..c0d871fb 100644 --- a/static/js/pandora/statisticsDialog.js +++ b/static/js/pandora/statisticsDialog.js @@ -269,9 +269,9 @@ pandora.ui.statisticsDialog = function() { var split = value.split('-'), color = isYearOrMonth ? Ox.rgb( Ox.mod(8 - parseInt(split[1], 10), 12) * 30, 1, 0.5 - ).map(Math.round) : Ox.rgb( + ) : Ox.rgb( (Math.abs(11.5 - parseInt(split[0], 10)) - 0.5) * -11, 1, 0.5 - ).map(Math.round); + ); if (pandora.user.ui.theme == 'classic') { color = color.map(function(c) { return c - 64;