Added 'M' to the number formatter
This commit is contained in:
parent
96a16743c3
commit
33e37950f9
|
@ -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