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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Aug 8 09:14:12 EDT 2007


Author: christoph
Date: 2007-08-08 09:14:12 -0400 (Wed, 08 Aug 2007)
New Revision: 1634

Modified:
   trunk/mapbender/http/html/mod_treefolder2.php
Log:
avoid to apply opacity attribute to div tag if opacity is NAN

Modified: trunk/mapbender/http/html/mod_treefolder2.php
===================================================================
--- trunk/mapbender/http/html/mod_treefolder2.php	2007-08-08 12:39:44 UTC (rev 1633)
+++ trunk/mapbender/http/html/mod_treefolder2.php	2007-08-08 13:14:12 UTC (rev 1634)
@@ -326,7 +326,7 @@
 	if (parent.mb_mapObj[mapObj_id].wms[wms_id].gui_wms_visible > 0) {
 		var divId = 'div_'+wms_id;
 		wmsImage = parent.mapframe1.document.getElementById(divId);
-		if (wmsImage != null && opacity != 100) {
+		if (wmsImage != null && !isNAN(opacity) && opacity != 100) {
 			wmsImage.style.opacity = (opacity / 100);
 			wmsImage.style.MozOpacity = (opacity / 100);
 			wmsImage.style.KhtmlOpacity = (opacity / 100);



More information about the Mapbender_commits mailing list