1d1c8e28d1
- keep selected map overlays during session - add first Simulator/Config option (enable/disable ai traffic)
15 lines
448 B
JavaScript
15 lines
448 B
JavaScript
define([
|
|
'jquery', 'knockout', 'text!./Config.html', 'fgcommand', 'kojqui/button', 'kojqui/buttonset'
|
|
], function(jquery, ko, htmlString,fgCommand ) {
|
|
function ViewModel(params) {
|
|
var self = this;
|
|
|
|
self.aiEnabled = ko.observable().extend({ fgPropertyGetSet: "/sim/traffic-manager/enabled" });
|
|
}
|
|
|
|
// Return component definition
|
|
return {
|
|
viewModel : ViewModel,
|
|
template : htmlString
|
|
};
|
|
});
|