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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu May 31 08:10:58 EDT 2007


Author: christoph
Date: 2007-05-31 08:10:57 -0400 (Thu, 31 May 2007)
New Revision: 1406

Modified:
   trunk/mapbender/http/html/mod_treefolder2.php
Log:
opacity up/down are now only displaed if they really have an effect

Modified: trunk/mapbender/http/html/mod_treefolder2.php
===================================================================
--- trunk/mapbender/http/html/mod_treefolder2.php	2007-05-31 10:25:38 UTC (rev 1405)
+++ trunk/mapbender/http/html/mod_treefolder2.php	2007-05-31 12:10:57 UTC (rev 1406)
@@ -319,6 +319,7 @@
 			applyOpacity(wms_id, opacity);
 		}
 	}
+	reloadTree();
 }
 
 function applyOpacity(wms_id, opacity) {
@@ -520,8 +521,8 @@
 								if(menu.indexOf("wms_down")!=-1 && ii!=parent.mb_mapObj[i].wms.length-1)c_menu+="menu_move_down,";
 								if(menu.indexOf("remove")!=-1)c_menu+="menu_delete,";
 //								if(menu.indexOf("wms_switch")!=-1)c_menu+="menu_wms_switch,";
-								if(menu.indexOf("opacity_up")!=-1)c_menu+="menu_opacity_up,";
-								if(menu.indexOf("opacity_down")!=-1)c_menu+="menu_opacity_down,";
+								if(menu.indexOf("opacity_up")!=-1 && parseFloat(parent.mb_mapObj[i].wms[ii].gui_wms_mapopacity) < 1)c_menu+="menu_opacity_up,";
+								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+="]";
 								if(switchwms=='true') {



More information about the Mapbender_commits mailing list