[Mapbender-commits] r5835 - trunk/mapbender/http/html
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Mar 26 03:42:38 EDT 2010
Author: christoph
Date: 2010-03-26 03:42:22 -0400 (Fri, 26 Mar 2010)
New Revision: 5835
Modified:
trunk/mapbender/http/html/mod_treefolderPlain.php
Log:
fix: http://trac.osgeo.org/mapbender/ticket/629
Modified: trunk/mapbender/http/html/mod_treefolderPlain.php
===================================================================
--- trunk/mapbender/http/html/mod_treefolderPlain.php 2010-03-26 07:40:10 UTC (rev 5834)
+++ trunk/mapbender/http/html/mod_treefolderPlain.php 2010-03-26 07:42:22 UTC (rev 5835)
@@ -819,11 +819,15 @@
else if(ii<= parseInt(openfolder)+hidden)
hidden++;
}
- closeAll()
- if(treeState!='')
+ closeAll();
+ var openFolderIndex = parseInt(openfolder, 10) + hidden;
+ if(treeState!='') {
setState(treeState);
- else if(openfolder!='false')
- setState(arrNodes[0][0]+"|wms_"+ mb_mapObj[i].wms[ parseInt(openfolder)+hidden].wms_id);
+ }
+ else if(openfolder!='false' && openFolderIndex < mb_mapObj[i].wms.length && openFolderIndex > 0) {
+
+ setState(arrNodes[0][0]+"|wms_"+ mb_mapObj[i].wms[ openFolderIndex].wms_id);
+ }
}
}
}
More information about the Mapbender_commits
mailing list