1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00
This commit is contained in:
cTn 2014-04-22 19:51:49 +02:00
parent 00e5420a2c
commit 388cc3195e
2 changed files with 2 additions and 15 deletions

15
main.js
View file

@ -53,9 +53,8 @@ $(document).ready(function() {
var self = this;
var index = $(self).parent().index();
// i am using hardcoded index here (for options tab) since i don't have time to write tab locking mechanism at the moment
// if there is no active connection, return
if (configuration_received == false && index != 9) {
if (configuration_received == false) {
GUI.log('You need to connect before you can view any of the tabs', 'red');
return;
}
@ -101,9 +100,6 @@ $(document).ready(function() {
case 'tab_cli':
tab_initialize_cli();
break;
case 'tab_options':
tab_initialize_options();
break;
}
});
}
@ -124,15 +120,6 @@ $(document).ready(function() {
// translate to user-selected language
localize();
if (configuration_received) {
$('a.back').hide();
} else {
$('a.back').click(function() {
$('#tabs > ul li').removeClass('active'); // de-select any selected tabs
tab_initialize_default();
});
}
// if notifications are enabled, or wasn't set, check the notifications checkbox
chrome.storage.local.get('update_notify', function(result) {
if (typeof result.update_notify === 'undefined' || result.update_notify) {