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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Apr 23 05:40:28 EDT 2007


Author: christoph
Date: 2007-04-23 05:40:28 -0400 (Mon, 23 Apr 2007)
New Revision: 1271

Modified:
   trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
fixed bug: window didn't close

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	2007-04-23 09:01:17 UTC (rev 1270)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2007-04-23 09:40:28 UTC (rev 1271)
@@ -1111,6 +1111,7 @@
 				var onClickText = "this.disabled=true;var result = window.opener.formCorrect(document, '"+featureTypeElementFormId+"');";
 				onClickText += 	"if (result.isCorrect) {";
 				onClickText += 		"window.opener.dbGeom('"+options[i]+"', "+memberIndex+"); ";
+//				onClickText +=      "window.close();";
 				onClickText += 	"}";
 				onClickText += 	"else {";
 				onClickText += 		"alert(result.errorMessage);this.disabled=false;"
@@ -1195,7 +1196,6 @@
 		}
 		str = parent.get_wfs_str(myconf, d, m, type, fid);
 		
-		
 		parent.mb_ajax_post("../extensions/geom2wfst.php", {'filter':str,'url':myconf['wfs_transaction']}, function(json,status){
 			var result = eval('('+json+')');
 			var response = result.response;
@@ -1222,12 +1222,14 @@
 	else {
 		var wfsWriteMessage = messageErrorWfsWrite[selectedLanguage];
 	} 
+
 	if (typeof(wfsWindow) != 'undefined' && !wfsWindow.closed) {
-//		wfsWindow.opener.focus();
-		wfsWindow.document.close();
+		alert(wfsWriteMessage);
 		wfsWindow.close();
 	}
-	alert(wfsWriteMessage);
+	else {
+		alert(wfsWriteMessage);
+	}
 }
 // --- wfs window (begin) -----------------------------------------------------------------------------------------
 // -----------------------------------------------------------------------------------------------------------



More information about the Mapbender_commits mailing list