diff --git a/webgui/lib/fgcommand.js b/webgui/lib/fgcommand.js index 6d1de1239..892300122 100644 --- a/webgui/lib/fgcommand.js +++ b/webgui/lib/fgcommand.js @@ -88,7 +88,10 @@ }, timeofday : function(type, offset) { this.sendCommand("timeofday", this.twoArgs("timeofday", type, "offset", null != offset ? offset : 0)); - } + }, + switchAircraft : function(id) { + this.sendCommand("switch-aircraft", this.oneArg("aircraft", id)); + }, }; return fgCommand;