From 1665278ba1dbd569d69df7e7bee598001fbd32e9 Mon Sep 17 00:00:00 2001 From: Bojan Djuricic Date: Wed, 17 Apr 2013 17:05:26 +0200 Subject: [PATCH] set human friendly max label when refreshing max value --- justgage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/justgage.js b/justgage.js index 4e4ad0f..81d8ab1 100644 --- a/justgage.js +++ b/justgage.js @@ -672,7 +672,7 @@ JustGage.prototype.refresh = function(val, max) { obj.txtMaximum = obj.config.max; if( obj.config.humanFriendly ) obj.txtMaximum = humanFriendlyNumber( obj.config.max, obj.config.humanFriendlyDecimal ); - obj.txtMax.attr({"text" : obj.config.max}); + obj.txtMax.attr({"text" : obj.txtMaximum}); setDy(obj.txtMax, obj.params.maxFontSize, obj.params.maxY); }