|
|
@ -26,7 +26,7 @@ $(document).ready(function() {
|
|
|
|
var tabs = $('#tabs > ul');
|
|
|
|
var tabs = $('#tabs > ul');
|
|
|
|
$('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 (configuration_received == false) { // if there is no active connection, return
|
|
|
|
notify('You need to connect before you can view any of the tabs', 'red');
|
|
|
|
notify('You need to connect before you can view any of the tabs', 'red');
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|