1
0
Fork 0
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:
Mark Haslinghuis 2021-08-05 02:52:46 +02:00
parent 37e41a014d
commit 03aeb41105
No known key found for this signature in database
GPG key ID: 198B0F616296A584

View file

@ -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;