From 83b71b6c3cd448c90191cd26381d3b49c40da241 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 30 Sep 2012 01:26:19 +0200 Subject: [PATCH] fix #1051 (negative profit -> 'loss') --- static/js/pandora/infoView.0xdb.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/infoView.0xdb.js b/static/js/pandora/infoView.0xdb.js index 8dde2e17..7289c0d4 100644 --- a/static/js/pandora/infoView.0xdb.js +++ b/static/js/pandora/infoView.0xdb.js @@ -403,7 +403,8 @@ pandora.ui.infoView = function(data) { html = []; ['budget', 'gross', 'profit'].forEach(function(key) { data[key] && html.push( - formatKey(key) + Ox.formatCurrency(data[key], '$') + formatKey(key == 'profit' && data[key] < 0 ? 'loss' : key) + + Ox.formatCurrency(Math.abs(data[key]), '$') ); }); $div.html(html.join('; '));