Parse values as decimals, 010 -> 10 not 8.
This commit is contained in:
parent
4bad123c32
commit
2146358b19
@ -1890,7 +1890,7 @@
|
|||||||
}
|
}
|
||||||
} 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'];
|
return conf['Interval'] = this.value = parseInt(this.value, 10) || conf['Interval'];
|
||||||
});
|
});
|
||||||
$.on(input, 'change', $.cb.value);
|
$.on(input, 'change', $.cb.value);
|
||||||
} else if (input.type === 'button') {
|
} else if (input.type === 'button') {
|
||||||
|
|||||||
@ -1469,7 +1469,7 @@ 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', -> conf['Interval'] = @value = parseInt(@value, 10) or conf['Interval']
|
||||||
$.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