1
0
Fork 0
fgdata/webgui/topics/Simulator/Config.js
Torsten Dreyer 1d1c8e28d1 Phi: Map changes and initial Config functions
- keep selected map overlays during session
- add first Simulator/Config option (enable/disable ai traffic)
2015-03-10 21:48:11 +01:00

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
};
});