1
0
Fork 0
forked from 0x2620/oxjs

change the signature of Ox.pad to match Ox.truncate

This commit is contained in:
rolux 2012-06-04 11:08:38 +02:00
commit a5c6747b57
10 changed files with 62 additions and 29 deletions

View file

@ -140,7 +140,7 @@ Ox.DateInput = function(options, self) {
autocomplete: Ox.range(1, days + 1).map(function(i) {
return self.options.format == 'short' ? Ox.pad(i, 2) : i.toString();
}),
value: self.options.format == 'short' ? Ox.pad(day, 2) : day.toString()
value: self.options.format == 'short' ? Ox.pad(parseInt(day), 2) : day.toString()
});
self.options.value = join();
}