[Mapbender-commits] r5545 - branches/2.6/http/html
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Sat Feb 20 06:41:49 EST 2010
Author: marc
Date: 2010-02-20 06:41:49 -0500 (Sat, 20 Feb 2010)
New Revision: 5545
Modified:
branches/2.6/http/html/mod_treefolderPlain.php
Log:
http://trac.osgeo.org/mapbender/ticket/353
Modified: branches/2.6/http/html/mod_treefolderPlain.php
===================================================================
--- branches/2.6/http/html/mod_treefolderPlain.php 2010-02-20 11:32:09 UTC (rev 5544)
+++ branches/2.6/http/html/mod_treefolderPlain.php 2010-02-20 11:41:49 UTC (rev 5545)
@@ -164,17 +164,24 @@
eventAfterMapRequest.register(updateScale);
eventAfterMapRequest.register(updateCheckState);
+
if (typeof enlargetreewidth === "number" && enlargetreewidth > 0) {
- eventAfterInit.register(function(){
- var initialWidth = parseInt($('#treeGDE').css("width"));
- $('#treeGDE').bind("mouseenter", function() {
- $(this).css({'width':(initialWidth+enlargetreewidth)+"px", 'zIndex':'300'});
- $(this).mousewheel();
- });
- $('#treeGDE').bind("mouseleave", function() {
- $(this).css({'width':initialWidth, 'zIndex':'3'});
- });
- });
+ eventAfterInit.register(function(){
+ var initialWidth = parseInt($('#treeGDE').css("width"));
+ $('#treeGDE').bind("mouseenter", function(){
+ $(this).css({
+ 'width': (initialWidth + enlargetreewidth) + "px",
+ 'zIndex': '300'
+ });
+ $(this).mousewheel();
+ });
+ $('#treeGDE').bind("mouseleave", function(){
+ $(this).css({
+ 'width': initialWidth,
+ 'zIndex': '3'
+ });
+ });
+ });
}
if(wmsbuttons != "true")
@@ -620,7 +627,7 @@
if(menu.indexOf("opacity_down")!=-1 && parseFloat( mb_mapObj[i].wms[ii].gui_wms_mapopacity) > 0)c_menu+="menu_opacity_down,";
if(menu.indexOf("hide")!=-1)c_menu+="menu_hide";
c_menu+="]";
- controls=null;
+ controls='';
if(switchwms=='true')controls='<INPUT type="checkbox" title="' + msgObj.tooltipHandleWms + '" onclick="handleSelectedWMS(\''+parentNode+'|wms_'+ mb_mapObj[i].wms[ii].wms_id+'\');" />';
if(wmsbuttons == 'true'&&metadatalink == 'true')controls+='<a href="'+'javascript:openwindow(\''+ defaultMetadataUrl + '&id='+temp.layer_uid+'\');'+'"><img alt="'+msgObj.tooltipMetadata+'" title="'+msgObj.tooltipMetadata+'" src="'+imagedir+'/info.png" /></a>';
addNode(parentNode,["wms_"+ mb_mapObj[i].wms[ii].wms_id,[temp.layer_title,((metadatalink=='true'&&wmsbuttons != 'true')?('javascript:openwindow(\"'+ defaultMetadataUrl + '&id='+temp.layer_uid+'\");'):"javascript:select("+i+","+ii+","+iii+");"),,,temp.layer_title,eval(c_menu),controls,[i,ii,iii]]],false,false,reverse=="true");
More information about the Mapbender_commits
mailing list