in Ox.formatOrdinal, add thousand separators

This commit is contained in:
rolux 2013-01-01 15:05:35 +01:00
parent f473b68ff4
commit 6d5b254a94

View file

@ -620,7 +620,7 @@ Ox.formatOrdinal <f> Formats a number as an ordinal
"13th"
@*/
Ox.formatOrdinal = function(number) {
var string = number.toString(),
var string = Ox.formatNumber(number),
length = string.length,
last = string[length - 1],
ten = length > 1 && string[length - 2] == '1';