mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 16:55:24 +03:00
Make the 'Update Firmware' buttom more consistent
This commit is contained in:
parent
11de751a5d
commit
3baab000da
2 changed files with 7 additions and 4 deletions
|
@ -680,6 +680,9 @@ TABS.firmware_flasher.initialize = function (callback) {
|
|||
}
|
||||
});
|
||||
|
||||
// Update Firmware button at top
|
||||
$('div#flashbutton a.flash_state').addClass('active');
|
||||
$('div#flashbutton a.flash').addClass('active');
|
||||
GUI.content_ready(callback);
|
||||
}
|
||||
|
||||
|
@ -696,6 +699,10 @@ TABS.firmware_flasher.cleanup = function (callback) {
|
|||
$(document).unbind('keypress');
|
||||
$(document).off('click', 'span.progressLabel a');
|
||||
|
||||
// Update Firmware button at top
|
||||
$('div#flashbutton a.flash_state').removeClass('active');
|
||||
$('div#flashbutton a.flash').removeClass('active');
|
||||
|
||||
analytics.resetFirmwareData();
|
||||
|
||||
if (callback) callback();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue