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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Nov 26 08:39:51 EST 2007


Author: verenadiewald
Date: 2007-11-26 08:39:51 -0500 (Mon, 26 Nov 2007)
New Revision: 1858

Modified:
   trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
handling of spatialrequest results (to popup div or to digitize tab directly)

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	2007-11-26 13:37:04 UTC (rev 1857)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2007-11-26 13:39:51 UTC (rev 1858)
@@ -377,7 +377,9 @@
 	}
 	parent.mb_registerInitFunctions("window.frames['"+ mod_digitize_elName + "'].initialiseMeasure()");
 	parent.mb_registerSubFunctions("window.frames['" + mod_digitize_elName + "'].updateExtent()");
-	parent.mb_registerWfsReadSubFunctions(function(geom){parent.tab_open(mod_digitize_elName);parent.window.frames[mod_digitize_elName].appendGeometryArray(geom);});
+	if(spatialRequestResultToDigitize==1){
+		parent.mb_registerWfsReadSubFunctions(function(geom){parent.tab_open(mod_digitize_elName);parent.window.frames[mod_digitize_elName].appendGeometryArray(geom);});
+	}
 	parent.mb_registerWfsWriteSubFunctions(function(){parent.zoom(mod_digitize_target, true, 0.999);});
 }
 
@@ -752,13 +754,11 @@
 }
 
 function updateListOfGeometries(){
-	var listOfGeom = "<table style='position:absolute; top:"+geomList_y+"px; left:"+geomList_x+"px;'>\n";
+	var listOfGeom = "<table id='geometryTable' style='position:absolute; top:"+geomList_y+"px; left:"+geomList_x+"px;'>\n";
 	if (d.count() > 0) {
 		wfsConf = parent.get_complete_wfs_conf();
 		for (var i = 0 ; i < d.count(); i ++) {
-
 			if (d.get(i).get(-1).isComplete() && (nonTransactionalEditable || isTransactional(d.get(i)))) {
-	
 				listOfGeom += "\t<tr>\n\t\t<td>\n";
 				if (wfsExistsForGeom(d.get(i), wfsConf)) {
 					listOfGeom += "\t\t\t<img src = '"+buttonDig_imgdir+buttonDig_wfs_src+"' title='"+msgObj.buttonDig_wfs_title+"' onclick='showWfs("+i+")'>\n";



More information about the Mapbender_commits mailing list