Просмотр исходного кода

edit sttabs for reflect more than just settings tabs

CauseFX 6 лет назад
Родитель
Сommit
b998258f6c
1 измененных файлов с 5 добавлено и 1 удалено
  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();
 	};