Browse Source

Fix Menu overlapping (#1122)

causefx 7 years ago
parent
commit
3357bc110f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      js/functions.js

+ 4 - 0
js/functions.js

@@ -741,6 +741,10 @@ function loadNextTab(){
 	var next = $('#page-wrapper').find('.loaded').attr('data-name');
 	if (typeof next !== 'undefined') {
 		var type = $('#page-wrapper').find('.loaded').attr('data-type');
+        var parent = $('#menu-'+next).parent();
+        if(parent.hasClass('in') === false){
+            parent.parent().find('a').first().trigger('click')
+        }
 		switchTab(next,type);
 	}else{
 		console.log("Tab Function: No Available Tab to open");