1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 11:29:53 +03:00

locked tabs notify

This commit is contained in:
cTn 2013-11-08 18:43:51 +01:00
parent b441a8eed0
commit 05dc57ceb7

View file

@ -40,6 +40,7 @@ $(document).ready(function() {
$('a', tabs).click(function() {
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
notify('You need to connect before you can view any of the tabs', 'red');
return;
}