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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jan 25 08:22:50 EST 2007


Author: christoph
Date: 2007-01-25 08:22:50 -0500 (Thu, 25 Jan 2007)
New Revision: 1043

Modified:
   trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
- added new button for deletion from db
- fixed bug wfsWindow.document has no properties

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	2007-01-25 13:21:33 UTC (rev 1042)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2007-01-25 13:22:50 UTC (rev 1043)
@@ -620,7 +620,7 @@
 				listOfGeom += "\t\t</td>\n\t\t<td>\n";
 	
 				if (isValidWfsConfIndex(wfs_conf, d.get(i).wfs_conf)) {
-					listOfGeom += "\t\t\t<img src = '"+buttonDig_imgdir+buttonDig_remove_src+"' title='"+buttonDig_remove_title+"' onclick=\"var deltrans = confirm('Delete geometry from database?');if (deltrans) dbGeom('delete', "+i+")\">\n";
+					listOfGeom += "\t\t\t<img src = '"+buttonDig_imgdir+buttonDig_removeDb_src+"' title='"+buttonDig_removeDb_title+"' onclick=\"var deltrans = confirm('Delete geometry from database?');if (deltrans) dbGeom('delete', "+i+")\">\n";
 				}
 				listOfGeom += "\t\t</td>\n\t\t<td style = 'color:blue;font-size:12px'>\n";
 				listOfGeom += "\t\t\t<div onmouseover='parent.mb_wfs_perform(\"over\",d.get("+i+"));' ";
@@ -820,14 +820,13 @@
 }
 
 function dbGeom(type,m) {
-	if (typeof(wfsWindow) != 'undefined') {
+	if (typeof(wfsWindow) != 'undefined' && !wfsWindow.closed) {
 		d.get(m).wfs_conf = parseInt(wfsWindow.document.forms[0].wfs.options[wfsWindow.document.forms[0].wfs.selectedIndex].value);
 		d.get(m).e = new parent.Wfs_element();
 	}
 	else {
 		wfs_conf = parent.get_complete_wfs_conf();
 	}
-	
 	var myconf = wfs_conf[d.get(m).wfs_conf];
 	
 	var mapObjInd = parent.getMapObjIndexByName(mod_digitize_target);
@@ -837,7 +836,7 @@
 	}
 	else {
 		var fid = false;
-		if (typeof(wfsWindow) != 'undefined') {
+		if (typeof(wfsWindow) != 'undefined' && !wfsWindow.closed) {
 			var myform = wfsWindow.document.forms[1];
 		
 			for (var i=0; i<myform.length; i++){



More information about the Mapbender_commits mailing list