mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 00:05:22 +03:00
Remove scrolling
This commit is contained in:
parent
37e41a014d
commit
03aeb41105
1 changed files with 5 additions and 6 deletions
|
@ -90,10 +90,11 @@ firmware_flasher.initialize = function (callback) {
|
|||
$(this).attr('target', '_blank');
|
||||
});
|
||||
|
||||
if (self.releases) {
|
||||
$('div.release_info').slideDown();
|
||||
|
||||
$('.tab-firmware_flasher .content_wrapper').animate({ scrollTop: $('div.release_info').position().top }, 1000);
|
||||
}
|
||||
}
|
||||
|
||||
function process_hex(data, summary) {
|
||||
self.intel_hex = data;
|
||||
|
@ -861,11 +862,9 @@ firmware_flasher.initialize = function (callback) {
|
|||
});
|
||||
|
||||
function updateDetectBoardButton() {
|
||||
const board = $('select[name="board"] option:selected').val();
|
||||
const firmwareVersion = $('select[name="firmware_version"] option:selected').val();
|
||||
const isDfu = portPickerElement.val().includes('DFU');
|
||||
const isBusy = GUI.connect_lock;
|
||||
const isLoaded = board !== '0' && firmwareVersion !== '0';
|
||||
const isLoaded = self.releases ? Object.keys(self.releases).length > 1 : false;
|
||||
const isAvailable = PortHandler.port_available || false;
|
||||
const isButtonDisabled = isDfu || isBusy || !isLoaded || !isAvailable;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue