15s min update interval

This commit is contained in:
James Campos 2011-11-19 00:26:20 -08:00
parent 24ac28a484
commit 94d11e9570
2 changed files with 6 additions and 2 deletions

View File

@ -1891,7 +1891,8 @@
}
} else if (input.name === 'Interval') {
$.on(input, 'change', function() {
return conf['Interval'] = this.value = parseInt(this.value) || conf['Interval'];
if ((val = parseInt(this.value)) < 15) val = 15;
return conf['Interval'] = this.value = val;
});
$.on(input, 'change', $.cb.value);
} else if (input.type === 'button') {

View File

@ -1470,7 +1470,10 @@ updater =
$.on input, 'click', updater.cb.autoUpdate
updater.cb.autoUpdate.call input
else if input.name is 'Interval'
$.on input, 'change', -> conf['Interval'] = @value = parseInt(@value) or conf['Interval']
$.on input, 'change', ->
if (val = parseInt @value) < 15
val = 15
conf['Interval'] = @value = val
$.on input, 'change', $.cb.value
else if input.type is 'button'
$.on input, 'click', updater.update