[Mapbender-commits] r5543 - trunk/mapbender/http/html

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sat Feb 20 06:22:03 EST 2010


Author: marc
Date: 2010-02-20 06:22:03 -0500 (Sat, 20 Feb 2010)
New Revision: 5543

Modified:
   trunk/mapbender/http/html/mod_treefolderPlain.php
Log:
http://trac.osgeo.org/mapbender/ticket/559

Modified: trunk/mapbender/http/html/mod_treefolderPlain.php
===================================================================
--- trunk/mapbender/http/html/mod_treefolderPlain.php	2010-02-20 11:17:23 UTC (rev 5542)
+++ trunk/mapbender/http/html/mod_treefolderPlain.php	2010-02-20 11:22:03 UTC (rev 5543)
@@ -179,6 +179,7 @@
 if (typeof(alerterror) === 'undefined')alerterror = 'false';
 if (typeof(openfolder) === 'undefined')openfolder = 'false';
 if (typeof(handlesublayer) === 'undefined')handlesublayer = 'false';
+if (typeof(enlargetreewidth) === 'undefined') enlargetreewidth = 'false'; 
 if (typeof(menu) === 'undefined')menu = '';
 if (typeof(redirectToMetadataUrl) !== 'undefined' && redirectToMetadataUrl == "false") {
 	redirectToMetadataUrl = false;
@@ -220,6 +221,26 @@
 eventAfterMapRequest.register(updateScale);
 eventAfterMapRequest.register(updateCheckState);
 
+
+if (enlargetreewidth) {
+    eventAfterInit.register(function(){
+        var initialWidth = parseInt($('#treeGDE').css("width"));
+        $('#treeGDE').bind("mouseenter", function(){
+            $(this).css({
+                'width': initialWidth + enlargetreewidth,
+                'zIndex': '300'
+            });
+            $(this).mousewheel();
+        });
+        $('#treeGDE').bind("mouseleave", function(){
+            $(this).css({
+                'width': initialWidth,
+                'zIndex': '3'
+            });
+        });
+    });
+}
+
 if(wmsbuttons != "true")
 	jst_highlight = false;
 



More information about the Mapbender_commits mailing list