File tree 4 files changed +5
-1
lines changed
4 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ var globalSettings = {
20
20
showProfileParameters : null ,
21
21
// tree target for documents
22
22
docsTreeLocation : 'master' ,
23
+ configuratorTreeLocation : 'master' ,
23
24
cliAutocomplete : true ,
24
25
assistnowApiKey : null ,
25
26
assistnowOfflineData : [ ] ,
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ var update = {
17
17
if ( CONFIGURATOR . connectionValid ) {
18
18
$ ( '#logo .firmware_version' ) . text ( FC . CONFIG . flightControllerVersion + " [" + FC . CONFIG . target + "]" ) ;
19
19
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 + '/' ;
20
21
21
22
// If this is a master branch firmware, this will find a 404 as there is no tag tree. So default to master for docs.
22
23
$ . ajax ( {
Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ <h1 class="tab_title" data-i18n="tabOSD"></h1>
358
358
359
359
< div class ="gui_box grey custom-element-container ">
360
360
< 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 >
362
362
< div class ="spacer_box_title " data-i18n ="osd_custom_element_settings "> </ div >
363
363
</ div >
364
364
< div class ="spacer_box settings " id ="osdCustomElements "> </ div >
Original file line number Diff line number Diff line change @@ -3573,6 +3573,8 @@ function createCustomElements(){
3573
3573
return ;
3574
3574
}
3575
3575
3576
+ $ ( '#INAVCharacterMapDocURL' ) . attr ( 'href' , globalSettings . configuratorTreeLocation + 'resources/osd/INAV%20Character%20Map.md' ) ;
3577
+
3576
3578
var customElementsContainer = $ ( '#osdCustomElements' ) ;
3577
3579
var init = true ;
3578
3580
You can’t perform that action at this time.
0 commit comments