[Mapbender-commits] r5006 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Nov 18 07:57:23 EST 2009
Author: christoph
Date: 2009-11-18 07:57:22 -0500 (Wed, 18 Nov 2009)
New Revision: 5006
Modified:
trunk/mapbender/http/javascripts/map_obj.js
Log:
Modified: trunk/mapbender/http/javascripts/map_obj.js
===================================================================
--- trunk/mapbender/http/javascripts/map_obj.js 2009-11-18 10:57:49 UTC (rev 5005)
+++ trunk/mapbender/http/javascripts/map_obj.js 2009-11-18 12:57:22 UTC (rev 5006)
@@ -770,10 +770,17 @@
// scope (see mod_addSLD.php)
if (typeof(vendorSpecificString) != "undefined") {
url += vendorSpecificString + "&";
- if (currentWms.wms_title == removeLayerAndStylesAffectedWMSTitle) {
- url = url.replace(/LAYERS=[^&]*&/, '');
- url = url.replace(/STYLES=[^&]*&/, '');
+
+ // not sure what this is, but it's evil
+ try {
+ if (currentWms.wms_title == removeLayerAndStylesAffectedWMSTitle) {
+ url = url.replace(/LAYERS=[^&]*&/, '');
+ url = url.replace(/STYLES=[^&]*&/, '');
+ }
}
+ catch (exc) {
+ new Mb_warning(exc.message);
+ }
}
}
// add Filter
More information about the Mapbender_commits
mailing list