1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-18 21:35:51 -04:00

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
+8
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, ",");
}
}
});