receiver in tabs

10.3.x-maintenance
cTn 2014-07-10 18:20:09 +02:00
parent 00e1ae0500
commit 13f49c0f64
2 changed files with 12 additions and 3 deletions

View File

@ -80,7 +80,7 @@ $(document).ready(function() {
tabs.pid_tuning.initialize();
break;
case 'tab_receiver':
tab_initialize_receiver();
tabs.receiver.initialize();
break;
case 'tab_auxiliary_configuration':
tab_initialize_auxiliary_configuration();

View File

@ -1,4 +1,7 @@
function tab_initialize_receiver(callback) {
tabs.receiver = function() {
};
tabs.receiver.initialize = function(callback) {
ga_tracker.sendAppView('Receiver Page');
GUI.active_tab = 'receiver';
@ -266,5 +269,11 @@ function tab_initialize_receiver(callback) {
GUI.interval_add('status_pull', function() {
MSP.send_message(MSP_codes.MSP_STATUS);
}, 250, true);
if (callback) callback();
}
}
};
tabs.receiver.cleanup = function(callback) {
if (callback) callback();
};