1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 11:29:53 +03:00

added a help button for the currently installed firmware

This commit is contained in:
Paul Rogalinski 2015-01-28 00:01:42 +01:00
parent 361d9a57dd
commit d3fc8464fa
3 changed files with 21 additions and 0 deletions

View file

@ -207,6 +207,13 @@ function onConnect() {
$('div#port-picker a.connect').text(chrome.i18n.getMessage('disconnect')).addClass('active');
$('#tabs ul.mode-disconnected').hide();
$('#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));
}
}
function onClosed(result) {
@ -218,6 +225,7 @@ function onClosed(result) {
$('#tabs ul.mode-connected').hide();
$('#tabs ul.mode-disconnected').show();
$('#button-help').hide();
}
function read_serial(info) {