4d94d42ff6
with this patch, navigation with the browsers forward/backward buttons is supported within topics and subtopics as well as deep linking into topics using hashed urls like /gui/#Map or /gui/#Environment/Weather Also, slightly rename map overlay layers
35 lines
1,021 B
JavaScript
35 lines
1,021 B
JavaScript
define([
|
|
'knockout', 'text!./Aircraft.html', './SubtopicViewmodel'
|
|
], function(ko, htmlString, SubtopicViewmodel) {
|
|
ko.components.register('Aircraft/Select', {
|
|
require : 'topics/Aircraft/Select'
|
|
});
|
|
|
|
ko.components.register('Aircraft/Mass & Balance', {
|
|
require : 'topics/Aircraft/MassBalance'
|
|
});
|
|
|
|
ko.components.register('Aircraft/Checklists', {
|
|
require : 'topics/Aircraft/Checklists'
|
|
});
|
|
|
|
ko.components.register('Aircraft/Help', {
|
|
require : 'topics/Aircraft/Help'
|
|
});
|
|
|
|
ko.components.register('Aircraft/Panel', {
|
|
require : 'topics/Aircraft/Panel'
|
|
});
|
|
|
|
// Return component definition
|
|
return {
|
|
viewModel : {
|
|
createViewModel : function(params, componentInfo) {
|
|
return new SubtopicViewmodel([
|
|
'Help', 'Mass & Balance', 'Checklists', 'Failures', 'Panel', 'Select'
|
|
], "Aircraft", params);
|
|
},
|
|
},
|
|
template : htmlString
|
|
};
|
|
});
|