mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
initial work on pass through mode for ReadError
This commit is contained in:
parent
f649418fdf
commit
cb5bcf9c0a
3 changed files with 71 additions and 45 deletions
8
main.js
8
main.js
|
@ -54,10 +54,11 @@ $(document).ready(function() {
|
|||
if ($(this).parent().hasClass('active') == false) { // only initialize when the tab isn't already active
|
||||
var self = this;
|
||||
var index = $(self).parent().index();
|
||||
var tab = $(self).parent().prop('class');
|
||||
|
||||
// if there is no active connection, return
|
||||
if (configuration_received == false) {
|
||||
GUI.log('You need to connect before you can view any of the tabs', 'red');
|
||||
if (!configuration_received && tab != 'tab_logging') {
|
||||
GUI.log('You need to <strong>connect</strong> before you can view any of the tabs');
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -65,9 +66,6 @@ $(document).ready(function() {
|
|||
// disable previously active tab highlight
|
||||
$('li', tabs).removeClass('active');
|
||||
|
||||
// get tab class name (there should be only one class listed)
|
||||
var tab = $(self).parent().prop('class');
|
||||
|
||||
// Highlight selected tab
|
||||
$(self).parent().addClass('active');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue