Added 'M' to the number formatter

This commit is contained in:
RaceProUK 2015-03-24 22:03:57 +00:00
parent 96a16743c3
commit 33e37950f9
1 changed files with 3 additions and 0 deletions

View File

@ -264,6 +264,9 @@ var number = function(val) {
if (val > 999) { if (val > 999) {
return (val / 1000).toFixed(1) + "K"; return (val / 1000).toFixed(1) + "K";
} }
if (val > 999999) {
return (val / 1000000).toFixed(1) + "M";
}
return val.toString(); return val.toString();
}; };