[Mapbender-commits] r5485 - branches/2.6/http/html
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Feb 5 09:30:02 EST 2010
Author: christoph
Date: 2010-02-05 09:30:01 -0500 (Fri, 05 Feb 2010)
New Revision: 5485
Modified:
branches/2.6/http/html/mod_treefolderPlain.php
Log:
Modified: branches/2.6/http/html/mod_treefolderPlain.php
===================================================================
--- branches/2.6/http/html/mod_treefolderPlain.php 2010-02-05 08:25:01 UTC (rev 5484)
+++ branches/2.6/http/html/mod_treefolderPlain.php 2010-02-05 14:30:01 UTC (rev 5485)
@@ -123,7 +123,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(enlargetreewidth) === 'undefined') enlargetreewidth = 0;
if (typeof(menu) === 'undefined')menu = '';
if (typeof(redirectToMetadataUrl) !== 'undefined' && redirectToMetadataUrl == "false") {
redirectToMetadataUrl = false;
@@ -164,11 +164,11 @@
eventAfterMapRequest.register(updateScale);
eventAfterMapRequest.register(updateCheckState);
-if (enlargetreewidth) {
+if (typeof enlargetreewidth === "number" && enlargetreewidth > 0) {
eventAfterInit.register(function(){
var initialWidth = parseInt($('#treeGDE').css("width"));
$('#treeGDE').bind("mouseover", function() {
- $(this).css({'width':initialWidth+enlargetreewidth, 'zIndex':'300'});
+ $(this).css({'width':(initialWidth+enlargetreewidth)+"px", 'zIndex':'300'});
$(this).mousewheel();
});
$('#treeGDE').bind("mouseout", function() {
More information about the Mapbender_commits
mailing list