mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-17 13:25:22 +03:00
locked tabs notify
This commit is contained in:
parent
b441a8eed0
commit
05dc57ceb7
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ $(document).ready(function() {
|
||||||
$('a', tabs).click(function() {
|
$('a', tabs).click(function() {
|
||||||
if ($(this).parent().hasClass('active') == false) { // only initialize when the tab isn't already active
|
if ($(this).parent().hasClass('active') == false) { // only initialize when the tab isn't already active
|
||||||
if (connectionId < 1 || configuration_received == false) { // if there is no active connection, return
|
if (connectionId < 1 || configuration_received == false) { // if there is no active connection, return
|
||||||
|
notify('You need to connect before you can view any of the tabs', 'red');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue