don't error

This commit is contained in:
James Campos 2011-07-23 19:30:27 -07:00
parent 6f00fbb750
commit 060629d2d9
2 changed files with 2 additions and 2 deletions

View File

@ -1616,7 +1616,7 @@
}
},
interval: function() {
return conf['Interval'] = this.value = this.value.match(/\d+/)[0];
return conf['Interval'] = this.value = parseInt(this.value) || conf['Interval'];
},
update: function() {
var arr, body, br, id, input, length, replies, reply, _i, _len, _ref, _ref2;

View File

@ -1320,7 +1320,7 @@ updater =
else
window.clearInterval updater.intervalID
interval: ->
conf['Interval'] = @value = @value.match(/\d+/)[0]
conf['Interval'] = @value = parseInt(@value) or conf['Interval']
update: ->
if @status is 404
updater.timer.textContent = ''