[Mapbender-commits] r5256 - branches/2.6/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Jan 4 05:25:20 EST 2010


Author: christoph
Date: 2010-01-04 05:25:20 -0500 (Mon, 04 Jan 2010)
New Revision: 5256

Modified:
   branches/2.6/http/javascripts/map_obj.js
Log:
http://trac.osgeo.org/mapbender/ticket/583

Modified: branches/2.6/http/javascripts/map_obj.js
===================================================================
--- branches/2.6/http/javascripts/map_obj.js	2010-01-04 10:22:06 UTC (rev 5255)
+++ branches/2.6/http/javascripts/map_obj.js	2010-01-04 10:25:20 UTC (rev 5256)
@@ -680,10 +680,16 @@
 			// 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