Browse Source

fix default tab load if first tab has group

CauseFX 3 years ago
parent
commit
d7aa76d2c5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      js/functions.js

+ 2 - 2
js/functions.js

@@ -427,10 +427,10 @@ function getDefault(id){
         }
         }
     }
     }
     if(getHash() === false || (getHash() === 'OrganizrLogin' && activeInfo.user.loggedin)){
     if(getHash() === false || (getHash() === 'OrganizrLogin' && activeInfo.user.loggedin)){
-        if(tabInfo.name !== null && tabInfo.type !== null){
+        if(tabInfo){
             switchTab(id);
             switchTab(id);
         } else {
         } else {
-            $('#side-menu').children().first().children().click()
+	        $('.allTabsList').first().children().click()
         }
         }
     }else if(getHash() == 'OrganizrLogin'){
     }else if(getHash() == 'OrganizrLogin'){
         loadNextTab(true);
         loadNextTab(true);