[Mapbender-commits] r7527 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Feb 3 11:22:31 EST 2011


Author: verenadiewald
Date: 2011-02-03 08:22:31 -0800 (Thu, 03 Feb 2011)
New Revision: 7527

Modified:
   trunk/mapbender/http/plugins/mb_metadata_layerPreview.js
Log:
ensuring that obj is a number, otherwise wms preview fails

Modified: trunk/mapbender/http/plugins/mb_metadata_layerPreview.js
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_layerPreview.js	2011-02-03 16:05:20 UTC (rev 7526)
+++ trunk/mapbender/http/plugins/mb_metadata_layerPreview.js	2011-02-03 16:22:31 UTC (rev 7527)
@@ -123,7 +123,7 @@
 			this.init.done = true;
 		}
 		
-		if(typeof obj == 'number') {
+		if(typeof parseInt(obj, 10) == 'number') {
 			that.wms(obj);
 		}
 		



More information about the Mapbender_commits mailing list