Revert "15s min update interval"

This reverts commit 94d11e957007b6ab3ed5779a865cf3de3e9b3e03.
This commit is contained in:
Nicolas Stepien 2011-11-24 00:31:36 +01:00
parent 9f6c6ec1c6
commit b7aefb7137
2 changed files with 2 additions and 6 deletions

View File

@ -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') {

View File

@ -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