mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 03:07:17 -05:00
Added 'M' to the number formatter
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user