[Mapbender-commits] r6008 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Apr 22 10:24:08 EDT 2010


Author: christoph
Date: 2010-04-22 10:24:07 -0400 (Thu, 22 Apr 2010)
New Revision: 6008

Modified:
   trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
Log:


Modified: trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php	2010-04-22 13:40:39 UTC (rev 6007)
+++ trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php	2010-04-22 14:24:07 UTC (rev 6008)
@@ -380,13 +380,19 @@
 			currentImg.src = buttonWfs_imgdir+buttonWfs_src[i];
 			currentImg.style.margin = "5px";
 			currentImg.onmouseover = new Function("wfsInitFunction("+i+")");
-			document.getElementById("displaySpatialButtons").appendChild(currentImg);
+			var b = document.getElementById("displaySpatialButtons");
+			if (b !== null) {
+				b.appendChild(currentImg);	
+			}
 		}
 	}
 }
 
 function disableButtons() {
-	removeChildNodes(document.getElementById("displaySpatialButtons"));
+	var b = document.getElementById("displaySpatialButtons");
+	if (b !== null) {
+		removeChildNodes(b);
+	}
 }
 
 function wfsEnable(obj) {
@@ -436,7 +442,10 @@
 				spatialRes.id = "spatialResHint";
 				spatialRes.name = "spatialResHint";
 				spatialRes.className = "spatialResHint";
-				document.getElementById("displaySpatialButtons").appendChild(spatialRes);
+				var b = document.getElementById("displaySpatialButtons");
+				if (b !== null) {
+					b.appendChild(spatialRes);	
+				}
 				document.getElementById("spatialResHint").innerHTML = "<br><img src='"+spatialRequestIsSetImg+"'></img>"+spatialRequestIsSetMessage;
 				spatialRequestGeom = queryGeom;
 			}



More information about the Mapbender_commits mailing list