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

Change to .toggle

This commit is contained in:
Asizon 2020-02-22 09:42:30 +01:00
parent 4455e6733d
commit 0c3785b9f5
2 changed files with 3 additions and 7 deletions

View file

@ -1107,11 +1107,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
$('input[id="accHardwareSwitch"]').change(function() {
if(semver.gte(CONFIG.apiVersion, "1.37.0")) {
var checked = $(this).is(':checked');
if (checked) {
$('.accelDisabled').show()
} else {
$('.accelDisabled').hide()
}
$('.accelNeeded').toggle(checked);
}
});