[Mapbender-commits] r3096 - branches/nimix_dev/http/html

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Oct 2 11:26:18 EDT 2008


Author: nimix
Date: 2008-10-02 11:26:18 -0400 (Thu, 02 Oct 2008)
New Revision: 3096

Modified:
   branches/nimix_dev/http/html/mod_treefolder2.php
Log:
fix CustomTree in IE

Modified: branches/nimix_dev/http/html/mod_treefolder2.php
===================================================================
--- branches/nimix_dev/http/html/mod_treefolder2.php	2008-10-01 13:53:23 UTC (rev 3095)
+++ branches/nimix_dev/http/html/mod_treefolder2.php	2008-10-02 15:26:18 UTC (rev 3096)
@@ -120,7 +120,9 @@
 	array_multisort($nr, $str);
 	
 	//output javascript vars
-	echo "var arrNodesStr = \"[['root_id', ['Layer','javascript:_foo()'],[".implode("",$str)."]]];\";\n";
+	$arrNodesStr = "[['root_id', ['Layer','javascript:_foo()'],[".implode("",$str)."]]];";
+	$arrNodesStr = str_replace(array("[]", ",]"),array("","]"),$arrNodesStr);
+	echo "var arrNodesStr = \"".$arrNodesStr."\";\n";
 	echo "var categories = {".implode(",", $categories)."};\n";
 }
 else{



More information about the Mapbender_commits mailing list