From c6700a8588da4b653ce5224a894e1dd0a9ef4e98 Mon Sep 17 00:00:00 2001 From: cTn Date: Wed, 9 Jul 2014 16:12:37 +0200 Subject: [PATCH] equip all tab initializers with callback parameter (currently without hooks) --- tabs/auxiliary_configuration.js | 2 +- tabs/cli.js | 2 +- tabs/default.js | 2 +- tabs/firmware_flasher.js | 2 +- tabs/gps.js | 2 +- tabs/initial_setup.js | 2 +- tabs/logging.js | 2 +- tabs/motor_outputs.js | 2 +- tabs/pid_tuning.js | 2 +- tabs/receiver.js | 2 +- tabs/sensors.js | 2 +- tabs/servos.js | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tabs/auxiliary_configuration.js b/tabs/auxiliary_configuration.js index e86cf49b44..e02300dc16 100644 --- a/tabs/auxiliary_configuration.js +++ b/tabs/auxiliary_configuration.js @@ -1,5 +1,5 @@ // TODO: rework box_highlight & update_ui to accept flexible amount of aux channels -function tab_initialize_auxiliary_configuration() { +function tab_initialize_auxiliary_configuration(callback) { ga_tracker.sendAppView('Auxiliary Configuration'); GUI.active_tab = 'auxiliary_configuration'; diff --git a/tabs/cli.js b/tabs/cli.js index 0b57bf083a..8f8af74394 100644 --- a/tabs/cli.js +++ b/tabs/cli.js @@ -24,7 +24,7 @@ CliHistory.prototype = { cli_history = new CliHistory(); -function tab_initialize_cli() { +function tab_initialize_cli(callback) { ga_tracker.sendAppView('CLI Page'); GUI.active_tab = 'cli'; diff --git a/tabs/default.js b/tabs/default.js index 41a4cfe379..0cba499195 100644 --- a/tabs/default.js +++ b/tabs/default.js @@ -1,4 +1,4 @@ -function tab_initialize_default() { +function tab_initialize_default(callback) { GUI.active_tab = 'default'; $('#content').load("./tabs/default.html", function() { diff --git a/tabs/firmware_flasher.js b/tabs/firmware_flasher.js index a1a34bd3be..ccebdda325 100644 --- a/tabs/firmware_flasher.js +++ b/tabs/firmware_flasher.js @@ -1,4 +1,4 @@ -function tab_initialize_firmware_flasher() { +function tab_initialize_firmware_flasher(callback) { ga_tracker.sendAppView('Firmware Flasher'); GUI.active_tab = 'firmware_flasher'; diff --git a/tabs/gps.js b/tabs/gps.js index 2a1a972585..730d3984af 100644 --- a/tabs/gps.js +++ b/tabs/gps.js @@ -1,4 +1,4 @@ -function tab_initialize_gps () { +function tab_initialize_gps (callback) { ga_tracker.sendAppView('GPS Page'); GUI.active_tab = 'gps'; diff --git a/tabs/initial_setup.js b/tabs/initial_setup.js index c7c478a6f8..ad0d23bdf9 100644 --- a/tabs/initial_setup.js +++ b/tabs/initial_setup.js @@ -1,4 +1,4 @@ -function tab_initialize_initial_setup() { +function tab_initialize_initial_setup(callback) { ga_tracker.sendAppView('Initial Setup'); GUI.active_tab = 'initial_setup'; diff --git a/tabs/logging.js b/tabs/logging.js index a0bfd0c424..10e748bff0 100644 --- a/tabs/logging.js +++ b/tabs/logging.js @@ -1,6 +1,6 @@ var MSP_pass_through = false; -function tab_initialize_logging() { +function tab_initialize_logging(callback) { ga_tracker.sendAppView('Logging'); GUI.active_tab = 'logging'; diff --git a/tabs/motor_outputs.js b/tabs/motor_outputs.js index 0187b59e87..13ab968db1 100644 --- a/tabs/motor_outputs.js +++ b/tabs/motor_outputs.js @@ -1,4 +1,4 @@ -function tab_initialize_motor_outputs() { +function tab_initialize_motor_outputs(callback) { ga_tracker.sendAppView('Motor Outputs Page'); GUI.active_tab = 'motor_outputs'; diff --git a/tabs/pid_tuning.js b/tabs/pid_tuning.js index ea93a35986..876a8e0df2 100644 --- a/tabs/pid_tuning.js +++ b/tabs/pid_tuning.js @@ -1,4 +1,4 @@ -function tab_initialize_pid_tuning() { +function tab_initialize_pid_tuning(callback) { ga_tracker.sendAppView('PID Tuning'); GUI.active_tab = 'pid_tuning'; diff --git a/tabs/receiver.js b/tabs/receiver.js index c44b9b50ff..082f15e46f 100644 --- a/tabs/receiver.js +++ b/tabs/receiver.js @@ -1,4 +1,4 @@ -function tab_initialize_receiver() { +function tab_initialize_receiver(callback) { ga_tracker.sendAppView('Receiver Page'); GUI.active_tab = 'receiver'; diff --git a/tabs/sensors.js b/tabs/sensors.js index 23a27f5ea1..582309c548 100644 --- a/tabs/sensors.js +++ b/tabs/sensors.js @@ -1,4 +1,4 @@ -function tab_initialize_sensors() { +function tab_initialize_sensors(callback) { ga_tracker.sendAppView('Sensor Page'); GUI.active_tab = 'sensors'; diff --git a/tabs/servos.js b/tabs/servos.js index 4456c48069..a40674bae4 100644 --- a/tabs/servos.js +++ b/tabs/servos.js @@ -5,7 +5,7 @@ that there was just no other way around this then hardcoding/implementing each model separately. */ -function tab_initialize_servos() { +function tab_initialize_servos(callback) { ga_tracker.sendAppView('Servos'); GUI.active_tab = 'servos';