Parse values as decimals, 010 -> 10 not 8.

This commit is contained in:
Nicolas Stepien 2011-11-24 00:52:21 +01:00
parent 4bad123c32
commit 2146358b19
2 changed files with 2 additions and 2 deletions

View File

@ -1890,7 +1890,7 @@
}
} else if (input.name === 'Interval') {
$.on(input, 'change', function() {
return conf['Interval'] = this.value = parseInt(this.value) || conf['Interval'];
return conf['Interval'] = this.value = parseInt(this.value, 10) || conf['Interval'];
});
$.on(input, 'change', $.cb.value);
} else if (input.type === 'button') {

View File

@ -1469,7 +1469,7 @@ updater =
$.on input, 'click', updater.cb.autoUpdate
updater.cb.autoUpdate.call input
else if input.name is 'Interval'
$.on input, 'change', -> conf['Interval'] = @value = parseInt(@value) or conf['Interval']
$.on input, 'change', -> conf['Interval'] = @value = parseInt(@value, 10) or conf['Interval']
$.on input, 'change', $.cb.value
else if input.type is 'button'
$.on input, 'click', updater.update