[Mapbender-commits] r3804 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Mar 24 06:06:00 EDT 2009
Author: christoph
Date: 2009-03-24 06:06:00 -0400 (Tue, 24 Mar 2009)
New Revision: 3804
Modified:
trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php
Log:
http://trac.osgeo.org/mapbender/ticket/408
Modified: trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php 2009-03-24 10:04:48 UTC (rev 3803)
+++ trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php 2009-03-24 10:06:00 UTC (rev 3804)
@@ -120,7 +120,12 @@
if (buttonWfs_toDigitize_on == 1) {
mb_registerWfsReadSubFunctions(function(geom){
if (buttonWfs_toDigitize_target && window.frames[buttonWfs_toDigitize_target]) {
- tab_open(buttonWfs_toDigitize_target);
+ try {
+ tab_open(buttonWfs_toDigitize_target);
+ }
+ catch (exc) {
+ new Mb_warning("Tab open failed, pssibly because you do not have tabs in your application.");
+ }
appendGeometryArrayToDigitize(geom);
}
else {
@@ -645,7 +650,12 @@
}
try {
window.frames[mod_digitize_elName].appendGeometryArray(geom);
- tab_open(mod_digitize_elName);
+ try {
+ tab_open(mod_digitize_elName);
+ }
+ catch (exc) {
+ new Mb_warning("Tab open failed, pssibly because you do not have tabs in your application.");
+ }
}
catch (e) {
var e = new Mb_exception("The application element 'digitize' is missing.");
@@ -671,7 +681,12 @@
digitizeArray.addCopy(geomArray.get(i));
try {
window.frames[mod_digitize_elName].appendGeometryArray(digitizeArray);
- tab_open(mod_digitize_elName);
+ try {
+ tab_open(mod_digitize_elName);
+ }
+ catch (exc) {
+ new Mb_warning("Tab open failed, pssibly because you do not have tabs in your application.");
+ }
}
catch (e) {
var e = new Mb_exception("The application element 'digitize' is missing.");
More information about the Mapbender_commits
mailing list