From 16a1970cca836998ba01fef60eefb12d982a07c5 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 2 Apr 2013 13:36:58 +0000 Subject: [PATCH] add egw.LAB.wait to tree creation, as dhtmlxtree object may not be loaded on time --- phpgwapi/inc/class.html.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php index df67bf2656..0fc13ca7e4 100644 --- a/phpgwapi/inc/class.html.inc.php +++ b/phpgwapi/inc/class.html.inc.php @@ -1203,7 +1203,9 @@ egw.LAB.wait(function() { } $html = self::div("\n",'id="'.$tree.'"',$_divClass).$html; $html .= "\n"; } } @@ -1343,6 +1346,7 @@ egw.LAB.wait(function() { { $html .= "$tree.openItem('$top');\n"; } + $html .= "});"; $html .= "\n"; return $html;