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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Nov 24 11:20:08 EST 2010


Author: verenadiewald
Date: 2010-11-24 08:20:08 -0800 (Wed, 24 Nov 2010)
New Revision: 7160

Modified:
   trunk/mapbender/http/plugins/mb_metadata_layerPreview.js
Log:
check if obj contains a number

Modified: trunk/mapbender/http/plugins/mb_metadata_layerPreview.js
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_layerPreview.js	2010-11-24 16:19:16 UTC (rev 7159)
+++ trunk/mapbender/http/plugins/mb_metadata_layerPreview.js	2010-11-24 16:20:08 UTC (rev 7160)
@@ -122,7 +122,11 @@
 			});
 			this.init.done = true;
 		}
-		that.wms(obj);
+		
+		if(typeof obj == 'number') {
+			that.wms(obj);
+		}
+		
 	};
 };
 



More information about the Mapbender_commits mailing list