Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update link to OSD symbols for custom elements #2238

Merged
merged 1 commit into from
Nov 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading