Swapped order of checks

This commit is contained in:
RaceProUK 2015-03-24 22:36:54 +00:00
parent 33e37950f9
commit 47d60ad86a
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();
};