diff --git a/js/globalSettings.js b/js/globalSettings.js index cc28ad852..730a30af1 100644 --- a/js/globalSettings.js +++ b/js/globalSettings.js @@ -20,6 +20,7 @@ var globalSettings = { showProfileParameters: null, // tree target for documents docsTreeLocation: 'master', + configuratorTreeLocation: 'master', cliAutocomplete: true, assistnowApiKey: null, assistnowOfflineData: [], diff --git a/js/globalUpdates.js b/js/globalUpdates.js index 16fa3776f..ca6784312 100644 --- a/js/globalUpdates.js +++ b/js/globalUpdates.js @@ -17,6 +17,7 @@ var update = { if (CONFIGURATOR.connectionValid) { $('#logo .firmware_version').text(FC.CONFIG.flightControllerVersion + " [" + FC.CONFIG.target + "]"); globalSettings.docsTreeLocation = 'https://github.com/iNavFlight/inav/blob/' + FC.CONFIG.flightControllerVersion + '/docs/'; + globalSettings.configuratorTreeLocation = 'https://github.com/iNavFlight/inav-configurator/tree/' + FC.CONFIG.flightControllerVersion + '/'; // If this is a master branch firmware, this will find a 404 as there is no tag tree. So default to master for docs. $.ajax({ diff --git a/tabs/osd.html b/tabs/osd.html index 1bc6d0c19..569665be5 100644 --- a/tabs/osd.html +++ b/tabs/osd.html @@ -358,7 +358,7 @@

-
+
diff --git a/tabs/osd.js b/tabs/osd.js index 419095e74..3aaef6540 100644 --- a/tabs/osd.js +++ b/tabs/osd.js @@ -3573,6 +3573,8 @@ function createCustomElements(){ return; } + $('#INAVCharacterMapDocURL').attr('href', globalSettings.configuratorTreeLocation + 'resources/osd/INAV%20Character%20Map.md'); + var customElementsContainer = $('#osdCustomElements'); var init = true;