mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 14:25:14 +03:00
Change to .toggle
This commit is contained in:
parent
4455e6733d
commit
0c3785b9f5
2 changed files with 3 additions and 7 deletions
|
@ -1107,11 +1107,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
||||||
$('input[id="accHardwareSwitch"]').change(function() {
|
$('input[id="accHardwareSwitch"]').change(function() {
|
||||||
if(semver.gte(CONFIG.apiVersion, "1.37.0")) {
|
if(semver.gte(CONFIG.apiVersion, "1.37.0")) {
|
||||||
var checked = $(this).is(':checked');
|
var checked = $(this).is(':checked');
|
||||||
if (checked) {
|
$('.accelNeeded').toggle(checked);
|
||||||
$('.accelDisabled').show()
|
|
||||||
} else {
|
|
||||||
$('.accelDisabled').hide()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -331,7 +331,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="gui_box grey accelDisabled">
|
<div class="gui_box grey accelNeeded">
|
||||||
<div class="gui_box_titlebar">
|
<div class="gui_box_titlebar">
|
||||||
<div class="spacer_box_title" i18n="configurationAccelTrims"></div>
|
<div class="spacer_box_title" i18n="configurationAccelTrims"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -348,7 +348,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="gui_box grey accelDisabled">
|
<div class="gui_box grey accelNeeded">
|
||||||
<div class="gui_box_titlebar">
|
<div class="gui_box_titlebar">
|
||||||
<div class="spacer_box_title" i18n="configurationArming"></div>
|
<div class="spacer_box_title" i18n="configurationArming"></div>
|
||||||
<div class="helpicon cf_tip" i18n_title="configurationArmingHelp"></div>
|
<div class="helpicon cf_tip" i18n_title="configurationArmingHelp"></div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue