15s min update interval
This commit is contained in:
parent
24ac28a484
commit
94d11e9570
@ -1891,7 +1891,8 @@
|
|||||||
}
|
}
|
||||||
} else if (input.name === 'Interval') {
|
} else if (input.name === 'Interval') {
|
||||||
$.on(input, 'change', function() {
|
$.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);
|
$.on(input, 'change', $.cb.value);
|
||||||
} else if (input.type === 'button') {
|
} else if (input.type === 'button') {
|
||||||
|
|||||||
@ -1470,7 +1470,10 @@ updater =
|
|||||||
$.on input, 'click', updater.cb.autoUpdate
|
$.on input, 'click', updater.cb.autoUpdate
|
||||||
updater.cb.autoUpdate.call input
|
updater.cb.autoUpdate.call input
|
||||||
else if input.name is 'Interval'
|
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
|
$.on input, 'change', $.cb.value
|
||||||
else if input.type is 'button'
|
else if input.type is 'button'
|
||||||
$.on input, 'click', updater.update
|
$.on input, 'click', updater.update
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user