[Mapbender-commits] r2085 - branches/2.5/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Feb 13 07:41:38 EST 2008


Author: verenadiewald
Date: 2008-02-13 07:41:38 -0500 (Wed, 13 Feb 2008)
New Revision: 2085

Modified:
   branches/2.5/http/javascripts/mod_digitize_tab.php
Log:
added try and catch parameter for var spatialRequestResultToDigitize

Modified: branches/2.5/http/javascripts/mod_digitize_tab.php
===================================================================
--- branches/2.5/http/javascripts/mod_digitize_tab.php	2008-02-13 12:20:19 UTC (rev 2084)
+++ branches/2.5/http/javascripts/mod_digitize_tab.php	2008-02-13 12:41:38 UTC (rev 2085)
@@ -412,8 +412,9 @@
 	parent.mb_registerInitFunctions("window.frames['"+ mod_digitize_elName + "'].initialiseMeasure()");
 	parent.mb_registerInitFunctions("window.frames['"+ mod_digitize_elName + "'].getMessages()");
 	parent.mb_registerSubFunctions("window.frames['" + mod_digitize_elName + "'].updateExtent()");
+	try {if(spatialRequestResultToDigitize){}}catch(e) {spatialRequestResultToDigitize = 1;}
 	if(spatialRequestResultToDigitize==1){
-	parent.mb_registerWfsReadSubFunctions(function(geom){parent.tab_open(mod_digitize_elName);parent.window.frames[mod_digitize_elName].appendGeometryArray(geom);});
+		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);});
 }



More information about the Mapbender_commits mailing list