[Mapbender-commits] r3802 - branches/2.5/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Mar 24 06:04:01 EDT 2009
Author: christoph
Date: 2009-03-24 06:04:01 -0400 (Tue, 24 Mar 2009)
New Revision: 3802
Modified:
branches/2.5/http/javascripts/mod_digitize_tab.php
branches/2.5/http/javascripts/mod_wfs_SpatialRequest.php
Log:
http://trac.osgeo.org/mapbender/ticket/408
Modified: branches/2.5/http/javascripts/mod_digitize_tab.php
===================================================================
--- branches/2.5/http/javascripts/mod_digitize_tab.php 2009-03-24 10:02:15 UTC (rev 3801)
+++ branches/2.5/http/javascripts/mod_digitize_tab.php 2009-03-24 10:04:01 UTC (rev 3802)
@@ -429,7 +429,9 @@
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){try {
+ parent.tab_open(mod_digitize_elName);
+ parent.window.frames[mod_digitize_elName].appendGeometryArray(geom);}catch(e){}});
}
parent.mb_registerWfsWriteSubFunctions(function(){parent.zoom(mod_digitize_target, true, 0.999);});
}
Modified: branches/2.5/http/javascripts/mod_wfs_SpatialRequest.php
===================================================================
--- branches/2.5/http/javascripts/mod_wfs_SpatialRequest.php 2009-03-24 10:02:15 UTC (rev 3801)
+++ branches/2.5/http/javascripts/mod_wfs_SpatialRequest.php 2009-03-24 10:04:01 UTC (rev 3802)
@@ -695,14 +695,22 @@
function appendGeometryArrayToDigitize(geom){
parent.window.frames[mod_digitize_elName].appendGeometryArray(geom);
- parent.tab_open(mod_digitize_elName);
+ try {
+ parent.tab_open(mod_digitize_elName);
+ }
+ catch(e) {
+ }
}
function appendGeometryToDigitize(i){
var digitizeArray = new GeometryArray();
digitizeArray.addCopy(_geomArray.get(i));
parent.window.frames[mod_digitize_elName].appendGeometryArray(digitizeArray);
- parent.tab_open(mod_digitize_elName);
+ try {
+ parent.tab_open(mod_digitize_elName);
+ }
+ catch (e) {
+ }
}
function createListOfGeometries(){
More information about the Mapbender_commits
mailing list