1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-18 22:05:13 +03:00

Make the 'Update Firmware' buttom more consistent

This commit is contained in:
Kyle K 2019-08-10 00:49:59 +00:00
parent 11de751a5d
commit 3baab000da
2 changed files with 7 additions and 4 deletions

View file

@ -90,15 +90,11 @@ function initializeSerialBackend() {
if ($('div#flashbutton a.flash_state').hasClass('active') && $('div#flashbutton a.flash').hasClass('active')) {
$('div#flashbutton a.flash_state').removeClass('active');
$('div#flashbutton a.flash').removeClass('active');
document.getElementById("tab_landing").style.display = "block";
document.getElementById("tab_help").style.display = "block";
$('#tabs ul.mode-disconnected .tab_landing a').click();
} else {
$('#tabs ul.mode-disconnected .tab_firmware_flasher a').click();
$('div#flashbutton a.flash_state').addClass('active');
$('div#flashbutton a.flash').addClass('active');
document.getElementById("tab_landing").style.display = "none";
document.getElementById("tab_help").style.display = "none";
}
});