Fuck yeah, parseInt with base 10.

This commit is contained in:
Nicolas Stepien 2011-10-04 22:47:20 +02:00
parent b25a4fcbc2
commit eaed3c281f
2 changed files with 2 additions and 2 deletions

View File

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

View File

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