Skip to content

Commit

Permalink
Merge pull request #2238 from iNavFlight/MrD_Update-link-to-OSD-symbo…
Browse files Browse the repository at this point in the history
…ls-on-custom-elements

Update link to OSD symbols for custom elements
  • Loading branch information
MrD-RC authored Nov 9, 2024
2 parents 8050982 + 46ead5a commit 1c75285
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/globalSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var globalSettings = {
showProfileParameters: null,
// tree target for documents
docsTreeLocation: 'master',
configuratorTreeLocation: 'master',
cliAutocomplete: true,
assistnowApiKey: null,
assistnowOfflineData: [],
Expand Down
1 change: 1 addition & 0 deletions js/globalUpdates.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion tabs/osd.html
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ <h1 class="tab_title" data-i18n="tabOSD"></h1>

<div class="gui_box grey custom-element-container">
<div class="gui_box_titlebar">
<a href="https://github.com/iNavFlight/inav-configurator/resources/osd/INAV%20Character%20Map.md" target="_blank"><div for="osd_custom_element_settings" class="helpicon cf_tip" data-i18n_title="osd_custom_element_settings_HELP"></div></a>
<a href="https://github.com/iNavFlight/inav-configurator/tree/master/resources/osd/INAV%20Character%20Map.md" id="INAVCharacterMapDocURL" target="_blank"><div for="osd_custom_element_settings" class="helpicon cf_tip" data-i18n_title="osd_custom_element_settings_HELP"></div></a>
<div class="spacer_box_title" data-i18n="osd_custom_element_settings"></div>
</div>
<div class="spacer_box settings" id="osdCustomElements"></div>
Expand Down
2 changes: 2 additions & 0 deletions tabs/osd.js
Original file line number Diff line number Diff line change
Expand Up @@ -3573,6 +3573,8 @@ function createCustomElements(){
return;
}

$('#INAVCharacterMapDocURL').attr('href', globalSettings.configuratorTreeLocation + 'resources/osd/INAV%20Character%20Map.md');

var customElementsContainer = $('#osdCustomElements');
var init = true;

Expand Down

0 comments on commit 1c75285

Please sign in to comment.