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

Merge pull request #1894 from Asizon/hideAccelFeatures

Hide Accel Features when it is disabled
This commit is contained in:
Michael Keller 2020-02-24 00:38:54 +13:00 committed by GitHub
commit 140509eea3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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) {
$('._smallAngle').show()
} else {
$('._smallAngle').hide()
}
$('.accelNeeded').toggle(checked);
}
});