[Mapbender-commits] r1736 - trunk/mapbender/http/extensions

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Oct 18 07:40:07 EDT 2007


Author: verenadiewald
Date: 2007-10-18 07:40:06 -0400 (Thu, 18 Oct 2007)
New Revision: 1736

Modified:
   trunk/mapbender/http/extensions/ext_featureInfoTunnel.php
Log:
close window if featureInfo has no result

Modified: trunk/mapbender/http/extensions/ext_featureInfoTunnel.php
===================================================================
--- trunk/mapbender/http/extensions/ext_featureInfoTunnel.php	2007-10-18 11:28:22 UTC (rev 1735)
+++ trunk/mapbender/http/extensions/ext_featureInfoTunnel.php	2007-10-18 11:40:06 UTC (rev 1736)
@@ -28,7 +28,8 @@
 else{
 	$x = new connector($nmr);
 	if (empty($x->file)) {
-		//do whatever you want
+		//close window if featureInfo has no result
+		echo "<body onLoad=\"javascript:window.close()\">";
 	} 
 	else {
 		echo $x->file;



More information about the Mapbender_commits mailing list