[Mapbender-commits] r7528 - branches/2.7/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Feb 3 11:23:13 EST 2011


Author: verenadiewald
Date: 2011-02-03 08:23:13 -0800 (Thu, 03 Feb 2011)
New Revision: 7528

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

Modified: branches/2.7/http/plugins/mb_metadata_layerPreview.js
===================================================================
--- branches/2.7/http/plugins/mb_metadata_layerPreview.js	2011-02-03 16:22:31 UTC (rev 7527)
+++ branches/2.7/http/plugins/mb_metadata_layerPreview.js	2011-02-03 16:23:13 UTC (rev 7528)
@@ -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