From eaed3c281f7c8aaa76869d46ee797c6a34f68a76 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Tue, 4 Oct 2011 22:47:20 +0200 Subject: [PATCH] Fuck yeah, parseInt with base 10. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 1a84eacc9..ffbac6c78 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1958,7 +1958,7 @@ } } else if (input.name === 'Interval') { $.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); } else if (input.type === 'button') { diff --git a/script.coffee b/script.coffee index f7e4e121a..b495bf3fd 100644 --- a/script.coffee +++ b/script.coffee @@ -1466,7 +1466,7 @@ updater = $.bind input, 'click', updater.cb.autoUpdate updater.cb.autoUpdate.call input 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 else if input.type is 'button' $.bind input, 'click', updater.updateNow