1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +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 self = this;
var index = $(self).parent().index(); 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 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'); GUI.log('You need to connect before you can view any of the tabs', 'red');
return; return;
} }
@ -101,9 +100,6 @@ $(document).ready(function() {
case 'tab_cli': case 'tab_cli':
tab_initialize_cli(); tab_initialize_cli();
break; break;
case 'tab_options':
tab_initialize_options();
break;
} }
}); });
} }
@ -124,15 +120,6 @@ $(document).ready(function() {
// translate to user-selected language // translate to user-selected language
localize(); 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 // if notifications are enabled, or wasn't set, check the notifications checkbox
chrome.storage.local.get('update_notify', function(result) { chrome.storage.local.get('update_notify', function(result) {
if (typeof result.update_notify === 'undefined' || result.update_notify) { if (typeof result.update_notify === 'undefined' || result.update_notify) {

View file

@ -1,7 +1,7 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"minimum_chrome_version": "33", "minimum_chrome_version": "33",
"version": "0.32", "version": "0.33",
"author": "cTn", "author": "cTn",
"name": "Baseflight - Configurator", "name": "Baseflight - Configurator",