created history as stated in #5 - not paginated yet.

This commit is contained in:
Stefan Dresselhaus
2015-09-18 00:41:37 +02:00
parent 2b55cf8178
commit 6235692988
11 changed files with 117 additions and 20 deletions

View File

@ -5,8 +5,8 @@ neat utility functions
Number.prototype.formatMoney = function(c, d, t) {
var n = this,
c = isNaN(c = Math.abs(c)) ? 2 : c,
d = d == undefined ? "." : t,
t = t == undefined ? "," : d,
d = d == undefined ? "." : d,
t = t == undefined ? "," : t,
s = n < 0 ? "-" : "",
i = parseInt(n = Math.abs(+n || 0).toFixed(c)) + "",
j = (j = i.length) > 3 ? j % 3 : 0;