소스 검색

#841: properly select the current tab

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2985 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 11 년 전
부모
커밋
c3b5c1ba24
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/itopwebpage.class.inc.php

+ 1 - 1
application/itopwebpage.class.inc.php

@@ -966,7 +966,7 @@ EOF
 			$container_index++;
 		}
 		$sSelector = '#tabbedContent_'.$container_index.' > ul';
-		$this->add_ready_script("$('$sSelector').tabs('select', $tab_index);");
+		$this->add_ready_script("window.setTimeout(\"$('$sSelector').tabs('select', $tab_index);\", 100);"); // Let the time to the tabs widget to initialize
 	}
 
 	public function StartCollapsibleSection($sSectionLabel, $bOpen = false)