1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 04:45:20 +03:00

Adjust documentation button so that it doesn't move the sensor

indicators when connected. Use same color as other help panels.
This commit is contained in:
Dominic Clifton 2015-01-29 19:01:37 +01:00
parent 20a82e7339
commit e447739e74
3 changed files with 40 additions and 20 deletions

View file

@ -211,10 +211,10 @@ function onConnect() {
$('#tabs ul.mode-connected').show();
if ("CLFL" == CONFIG.flightControllerIdentifier){
var helpButton = $('#button-help');
helpButton.show();
helpButton.html("Documentation for "+CONFIG.flightControllerVersion);
helpButton.attr("href","https://github.com/cleanflight/cleanflight/tree/v{0}/docs".format(CONFIG.flightControllerVersion));
var documentationButton = $('#button-documentation');
documentationButton.show();
documentationButton.html("Documentation for "+CONFIG.flightControllerVersion);
documentationButton.attr("href","https://github.com/cleanflight/cleanflight/tree/v{0}/docs".format(CONFIG.flightControllerVersion));
}
}
@ -227,7 +227,9 @@ function onClosed(result) {
$('#tabs ul.mode-connected').hide();
$('#tabs ul.mode-disconnected').show();
$('#button-help').hide();
var documentationButton = $('#button-documentation');
documentationButton.hide();
}
function read_serial(info) {