fix javascript errors
This commit is contained in:
parent
9beb3b9168
commit
f8beae5f46
@ -9,13 +9,8 @@ $.fn.gainInput = function() {
|
|||||||
|
|
||||||
var $select = $container.find('select');
|
var $select = $container.find('select');
|
||||||
$select.on('change', function(e) {
|
$select.on('change', function(e) {
|
||||||
var value = $(e.target).val()
|
var value = $(e.target).val();
|
||||||
update(value);
|
update(value);
|
||||||
if (value == 'auto') {
|
|
||||||
$input.val('auto');
|
|
||||||
} else {
|
|
||||||
$input
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
update($select.val());
|
update($select.val());
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user