Skip to content

Commit 1c75285

Browse files
authored
Merge pull request #2238 from iNavFlight/MrD_Update-link-to-OSD-symbols-on-custom-elements
Update link to OSD symbols for custom elements
2 parents 8050982 + 46ead5a commit 1c75285

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

js/globalSettings.js

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ var globalSettings = {
2020
showProfileParameters: null,
2121
// tree target for documents
2222
docsTreeLocation: 'master',
23+
configuratorTreeLocation: 'master',
2324
cliAutocomplete: true,
2425
assistnowApiKey: null,
2526
assistnowOfflineData: [],

js/globalUpdates.js

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ var update = {
1717
if (CONFIGURATOR.connectionValid) {
1818
$('#logo .firmware_version').text(FC.CONFIG.flightControllerVersion + " [" + FC.CONFIG.target + "]");
1919
globalSettings.docsTreeLocation = 'https://github.com/iNavFlight/inav/blob/' + FC.CONFIG.flightControllerVersion + '/docs/';
20+
globalSettings.configuratorTreeLocation = 'https://github.com/iNavFlight/inav-configurator/tree/' + FC.CONFIG.flightControllerVersion + '/';
2021

2122
// If this is a master branch firmware, this will find a 404 as there is no tag tree. So default to master for docs.
2223
$.ajax({

tabs/osd.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ <h1 class="tab_title" data-i18n="tabOSD"></h1>
358358

359359
<div class="gui_box grey custom-element-container">
360360
<div class="gui_box_titlebar">
361-
<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>
361+
<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>
362362
<div class="spacer_box_title" data-i18n="osd_custom_element_settings"></div>
363363
</div>
364364
<div class="spacer_box settings" id="osdCustomElements"></div>

tabs/osd.js

+2
Original file line numberDiff line numberDiff line change
@@ -3573,6 +3573,8 @@ function createCustomElements(){
35733573
return;
35743574
}
35753575

3576+
$('#INAVCharacterMapDocURL').attr('href', globalSettings.configuratorTreeLocation + 'resources/osd/INAV%20Character%20Map.md');
3577+
35763578
var customElementsContainer = $('#osdCustomElements');
35773579
var init = true;
35783580

0 commit comments

Comments
 (0)