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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Dec 16 16:43:35 EST 2008


Author: astrid_emde
Date: 2008-12-16 16:43:35 -0500 (Tue, 16 Dec 2008)
New Revision: 3349

Modified:
   trunk/mapbender/http/html/mod_treefolder2.php
Log:
http://trac.osgeo.org/mapbender/ticket/353
switchwms false dislplays text Null


Modified: trunk/mapbender/http/html/mod_treefolder2.php
===================================================================
--- trunk/mapbender/http/html/mod_treefolder2.php	2008-12-16 21:36:42 UTC (rev 3348)
+++ trunk/mapbender/http/html/mod_treefolder2.php	2008-12-16 21:43:35 UTC (rev 3349)
@@ -548,7 +548,7 @@
 								if(menu.indexOf("opacity_down")!=-1 && parseFloat(parent.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 + '" checked onclick="handleSelectedWMS(\''+arrNodes[0][0]+'|'+parent.mb_mapObj[i].wms[ii].wms_id+'\');" />';
 								if(wmsbuttons == 'true'&&metadatalink == 'true')controls+='<a href="'+'javascript:openwindow(\''+ defaultMetadataUrl + '&id='+temp.layer_uid+'\');'+'"><img src="'+imagedir+'/info.png" /></a>';
 								addNode(arrNodes[0][0],[parent.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