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

Fix vtx tab animation (#1649)

Fix vtx tab animation
This commit is contained in:
Michael Keller 2019-09-15 00:43:21 +12:00 committed by GitHub
commit 8a475c51ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -260,9 +260,17 @@ TABS.vtx.initialize = function (callback) {
}
}
$("#vtx_frequency_channel").prop('checked', VTX_CONFIG.vtx_band == 0 && VTX_CONFIG.vtx_frequency > 0)
.change(frequencyOrBandChannel)
.change();
$("#vtx_frequency_channel").prop('checked', VTX_CONFIG.vtx_band == 0 && VTX_CONFIG.vtx_frequency > 0).change(frequencyOrBandChannel);
if ($("#vtx_frequency_channel").prop('checked')) {
$(".field.vtx_channel").hide();
$(".field.vtx_band").hide();
$(".field.vtx_frequency").show();
} else {
$(".field.vtx_channel").show();
$(".field.vtx_band").show();
$(".field.vtx_frequency").hide();
}
function showHidePowerlevels() {
let powerlevelsValue = $(this).val();