converting tab object initialization

10.3.x-maintenance
cTn 2014-07-10 19:19:45 +02:00
parent a8e19a6956
commit e49f4ea5ff
12 changed files with 11 additions and 35 deletions

View File

@ -1,7 +1,5 @@
// TODO: rework box_highlight & update_ui to accept flexible amount of aux channels
tabs.auxiliary_configuration = function() {
};
tabs.auxiliary_configuration = {};
tabs.auxiliary_configuration.initialize = function(callback) {
GUI.active_tab_ref = this;
GUI.active_tab = 'auxiliary_configuration';

View File

@ -1,9 +1,7 @@
// requires major cleanup since we moved to the new tabs object
var CLI_active = false;
var CLI_valid = false;
tabs.cli = {};
tabs.cli.initialize = function(callback) {
var self = this;
GUI.active_tab_ref = this;

View File

@ -1,6 +1,4 @@
tabs.default = function() {
};
tabs.default = {};
tabs.default.initialize = function(callback) {
GUI.active_tab_ref = this;
GUI.active_tab = 'default';

View File

@ -1,6 +1,4 @@
tabs.firmware_flasher = function() {
};
tabs.firmware_flasher = {};
tabs.firmware_flasher.initialize = function(callback) {
GUI.active_tab_ref = this;
GUI.active_tab = 'firmware_flasher';

View File

@ -1,6 +1,4 @@
tabs.gps = function() {
};
tabs.gps = {};
tabs.gps.initialize = function(callback) {
GUI.active_tab_ref = this;
GUI.active_tab = 'gps';

View File

@ -1,6 +1,4 @@
tabs.initial_setup = function() {
};
tabs.initial_setup = {};
tabs.initial_setup.initialize = function(callback) {
GUI.active_tab_ref = this;
GUI.active_tab = 'initial_setup';

View File

@ -1,8 +1,6 @@
var MSP_pass_through = false;
tabs.logging = function() {
};
tabs.logging = {};
tabs.logging.initialize = function(callback) {
GUI.active_tab_ref = this;
GUI.active_tab = 'logging';

View File

@ -1,6 +1,4 @@
tabs.motor_outputs = function() {
};
tabs.motor_outputs = {};
tabs.motor_outputs.initialize = function(callback) {
GUI.active_tab_ref = this;
GUI.active_tab = 'motor_outputs';

View File

@ -1,6 +1,4 @@
tabs.pid_tuning = function() {
};
tabs.pid_tuning = {};
tabs.pid_tuning.initialize = function(callback) {
GUI.active_tab_ref = this;
GUI.active_tab = 'pid_tuning';

View File

@ -1,6 +1,4 @@
tabs.receiver = function() {
};
tabs.receiver = {};
tabs.receiver.initialize = function(callback) {
GUI.active_tab_ref = this;
GUI.active_tab = 'receiver';

View File

@ -1,6 +1,4 @@
tabs.sensors = function() {
};
tabs.sensors = {};
tabs.sensors.initialize = function(callback) {
GUI.active_tab_ref = this;
GUI.active_tab = 'sensors';

View File

@ -5,9 +5,7 @@
that there was just no other way around this then hardcoding/implementing each model separately.
*/
tabs.servos = function() {
};
tabs.servos = {};
tabs.servos.initialize = function(callback) {
GUI.active_tab_ref = this;
GUI.active_tab = 'servos';