diff --git a/4chan_x.user.js b/4chan_x.user.js index 9b15de2c0..ad0a4d322 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1891,8 +1891,7 @@ } } else if (input.name === 'Interval') { $.on(input, 'change', function() { - if ((val = parseInt(this.value)) < 15) val = 15; - return conf['Interval'] = this.value = val; + return conf['Interval'] = this.value = parseInt(this.value) || conf['Interval']; }); $.on(input, 'change', $.cb.value); } else if (input.type === 'button') { diff --git a/script.coffee b/script.coffee index 222360b43..c1692e92c 100644 --- a/script.coffee +++ b/script.coffee @@ -1469,10 +1469,7 @@ updater = $.on input, 'click', updater.cb.autoUpdate updater.cb.autoUpdate.call input else if input.name is 'Interval' - $.on input, 'change', -> - if (val = parseInt @value) < 15 - val = 15 - conf['Interval'] = @value = val + $.on input, 'change', -> conf['Interval'] = @value = parseInt(@value) or conf['Interval'] $.on input, 'change', $.cb.value else if input.type is 'button' $.on input, 'click', updater.update