Parcourir la source

edit sttabs for reflect more than just settings tabs

CauseFX il y a 6 ans
Parent
commit
b998258f6c
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      js/cbpFWTabs.js

+ 5 - 1
js/cbpFWTabs.js

@@ -40,7 +40,11 @@
 		// current index
 		// current index
 		this.current = -1;
 		this.current = -1;
 		// show current content item
 		// show current content item
-		this._show(5);
+        if(this.tabs[0].innerHTML.indexOf('#settings') >= 0){
+            this._show(5);
+        }else{
+            this._show();
+        }
 		// init events
 		// init events
 		this._initEvents();
 		this._initEvents();
 	};
 	};