svn commit: r696 - trunk/mapbender/http/javascripts/mod_digitize_tab.php

christoph at osgeo.org christoph at osgeo.org
Tue Jul 25 09:15:33 EDT 2006


Author: christoph
Date: 2006-07-25 13:15:32+0000
New Revision: 696

Modified:
   trunk/mapbender/http/javascripts/mod_digitize_tab.php

Log:
window for wfs update/delete/save is now being closed after a button has been pushed. The result is redirected into an iframe

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/javascripts/mod_digitize_tab.php?view=diff&rev=696&p1=trunk/mapbender/http/javascripts/mod_digitize_tab.php&p2=trunk/mapbender/http/javascripts/mod_digitize_tab.php&r1=695&r2=696
==============================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	(original)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2006-07-25 13:15:32+0000
@@ -719,16 +719,16 @@
 				str += "\t\t<tr>\n";
 				var colspan = 0;
 				if (geom) {
-					str += "\t\t\t<td><input type='button' name='saveButton' value='Save' onclick=\"window.opener.dbGeom('save', "+selMember+")\" /></td>\n";
+					str += "\t\t\t<td><input type='button' name='saveButton' value='Save' onclick=\"window.opener.dbGeom('save', "+selMember+");window.close()\" /></td>\n";
 				}
 				else colspan++;
 
 				if (parseInt(memberIndex) != -1 && fid) {
 					if (geom) {
-						str += "\t\t\t<td><input type='button' name='updateButton' value='Update' onclick=\"window.opener.dbGeom('update', "+selMember+")\"/></td>\n";
+						str += "\t\t\t<td><input type='button' name='updateButton' value='Update' onclick=\"window.opener.dbGeom('update', "+selMember+");window.close()\"/></td>\n";
 					}
 					else colspan++;
-					str += "\t\t\t<td><input type='button' name='deleteButton' value='Delete' onclick=\"window.opener.dbGeom('delete', "+selMember+")\"/></td>\n";
+					str += "\t\t\t<td><input type='button' name='deleteButton' value='Delete' onclick=\"window.opener.dbGeom('delete', "+selMember+");window.close()\"/></td>\n";
 				}
 				else colspan++;
 				
@@ -968,8 +968,9 @@
 	<body onload="registerFunctions();displayButtons();">
 		<table cellpadding='0' cellspacing='0' align = center><tr><td><div id='digButtons'></div></td></tr></table>
 		<div id = 'listOfGeometries'></div>
-		<form name='sendForm' action='../extensions/geom2wfst.php' method='POST' TARGET='_blank'>
+		<form name='sendForm' action='../extensions/geom2wfst.php' method='POST' TARGET='wfsupdate'>
 			<input type='hidden' name='url'><input type='hidden' name='filter'><input type='hidden' name='onlineresource'>
 		</form>
+		<iframe id='wfsupdate' width=0 height=0></iframe>
 	</body>
 </html>
\ No newline at end of file




More information about the Mapbender_commits mailing list