From eafd1603791c275884c38c80ba00d02cec9074b4 Mon Sep 17 00:00:00 2001 From: Laurent Eschenauer Date: Wed, 28 Aug 2013 22:09:49 +0200 Subject: [PATCH] Moved buttons from main view to plugin --- plugins/pilot/public/js/pilot.js | 4 ++++ views/index.ejs | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/pilot/public/js/pilot.js b/plugins/pilot/public/js/pilot.js index 8ebb861..90402f2 100644 --- a/plugins/pilot/public/js/pilot.js +++ b/plugins/pilot/public/js/pilot.js @@ -87,6 +87,10 @@ PILOT_ACCELERATION = 0.04; this.moving = false; this.keys = {}; + // Add the buttons to the control area + $('#controls').append(''); + $('#controls').append(''); + // Start with magneto calibration disabled. $('#calibratemagneto').prop('disabled', true); diff --git a/views/index.ejs b/views/index.ejs index 59b7cdf..94e8a09 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -25,8 +25,6 @@
- -
WebFlight