mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-20 06:45:12 +03:00
Improve conditionals
This commit is contained in:
parent
511ba1cf96
commit
d243a24755
1 changed files with 8 additions and 6 deletions
|
@ -1021,13 +1021,15 @@ TABS.firmware_flasher.initialize = function (callback) {
|
|||
});
|
||||
|
||||
portPickerElement.change(function () {
|
||||
if ($('option:selected', this).data().isDFU && !GUI.connect_lock) {
|
||||
if (!GUI.connect_lock) {
|
||||
if ($('option:selected', this).data().isDFU) {
|
||||
exitDfuElement.removeClass('disabled');
|
||||
} else if (!GUI.connect_lock) {
|
||||
} else {
|
||||
$("a.load_remote_file").removeClass('disabled');
|
||||
$("a.load_file").removeClass('disabled');
|
||||
exitDfuElement.addClass('disabled');
|
||||
}
|
||||
}
|
||||
}).change();
|
||||
|
||||
$('a.flash_firmware').click(function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue