forked from 0x2620/oxjs
use base 10 in parseInt, use Math.floor for numbers
This commit is contained in:
parent
79bb322112
commit
8bc8c57373
19 changed files with 44 additions and 45 deletions
|
|
@ -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(parseInt(day), 2) : day.toString()
|
||||
value: self.options.format == 'short' ? Ox.pad(parseInt(day, 10), 2) : day.toString()
|
||||
});
|
||||
self.options.value = join();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@ Ox.Spreadsheet = function(options, self) {
|
|||
.appendTo(that);
|
||||
!isSum && self.$input[id].bindEvent({
|
||||
change: function(data) {
|
||||
self.options.value.values[r][c] = parseInt(data.value);
|
||||
self.options.value.values[r][c] = parseInt(data.value, 10);
|
||||
self.sums = getSums();
|
||||
self.$input[c + ',' + self.rows].value(self.sums.column[c]);
|
||||
self.$input[self.columns + ',' + r].value(self.sums.row[r]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue