1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-21 07:15:15 +03:00

add .change

This commit is contained in:
Asizon 2020-02-29 09:08:24 +01:00
parent 540173ce05
commit d283f17f2f
2 changed files with 3 additions and 3 deletions

View file

@ -908,7 +908,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
$('._smallAngle').hide(); $('._smallAngle').hide();
if(semver.gte(CONFIG.apiVersion, "1.37.0")) { if(semver.gte(CONFIG.apiVersion, "1.37.0")) {
$('input[id="configurationSmallAngle"]').val(ARMING_CONFIG.small_angle); $('input[id="configurationSmallAngle"]').val(ARMING_CONFIG.small_angle);
$('.accelNeeded').toggle(SENSOR_CONFIG.acc_hardware !== 1); $('._smallAngle').show();
} }
// fill throttle // fill throttle
@ -1108,7 +1108,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
var checked = $(this).is(':checked'); var checked = $(this).is(':checked');
$('.accelNeeded').toggle(checked); $('.accelNeeded').toggle(checked);
} }
}); }).change();
$(features_e).filter('select').change(function () { $(features_e).filter('select').change(function () {
var element = $(this); var element = $(this);

View file

@ -359,7 +359,7 @@
<div class="helpicon cf_tip" i18n_title="configurationArmingHelp"></div> <div class="helpicon cf_tip" i18n_title="configurationArmingHelp"></div>
</div> </div>
<div class="spacer_box"> <div class="spacer_box">
<div class="_smallAngle accelNeeded"> <div class="_smallAngle">
<div class="number"> <div class="number">
<label> <label>
<input type="number" id="configurationSmallAngle" step="1" min="1" max="180" /> <input type="number" id="configurationSmallAngle" step="1" min="1" max="180" />