Merge pull request #3295 from RaceProUK/master

Swapped order of checks
This commit is contained in:
Sam 2015-03-25 16:55:54 +11:00
commit e5c3266c30
1 changed files with 3 additions and 3 deletions

View File

@ -261,12 +261,12 @@ var number = function(val) {
val = parseInt(val, 10);
if (isNaN(val)) val = 0;
if (val > 999) {
return (val / 1000).toFixed(1) + "K";
}
if (val > 999999) {
return (val / 1000000).toFixed(1) + "M";
}
if (val > 999) {
return (val / 1000).toFixed(1) + "K";
}
return val.toString();
};