Explorar el Código

edit sttabs for reflect more than just settings tabs

CauseFX hace 6 años
padre
commit
b998258f6c
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      js/cbpFWTabs.js

+ 5 - 1
js/cbpFWTabs.js

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