Improved Paginator

This commit is contained in:
Mark McDowall 2013-07-17 14:53:25 -07:00
parent d71765be53
commit 13fab38702
6 changed files with 41 additions and 12 deletions

View file

@ -33,6 +33,14 @@ define(
z = z || '0';
n = n + '';
return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n;
},
Number: function (input) {
if (!input) {
return '';
}
return input.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
}
});