Skip to content

Commit

Permalink
set human friendly max label when refreshing max value
Browse files Browse the repository at this point in the history
  • Loading branch information
toorshia committed Apr 17, 2013
1 parent abe8b58 commit 1665278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion justgage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 1665278

Please sign in to comment.