Bläddra i källkod

#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 år sedan
förälder
incheckning
c3b5c1ba24
1 ändrade filer med 1 tillägg och 1 borttagningar
  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)