mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #3294 from RaceProUK/master
Added 'M' to the number formatter
This commit is contained in:
commit
4bad697a8f
@ -264,6 +264,9 @@ var number = function(val) {
|
||||
if (val > 999) {
|
||||
return (val / 1000).toFixed(1) + "K";
|
||||
}
|
||||
if (val > 999999) {
|
||||
return (val / 1000000).toFixed(1) + "M";
|
||||
}
|
||||
return val.toString();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user