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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Mar 11 04:53:16 EST 2010


Author: kmq
Date: 2010-03-11 04:52:59 -0500 (Thu, 11 Mar 2010)
New Revision: 5745

Modified:
   trunk/mapbender/http/plugins/mb_resultList_DetailPopup.js
Log:
fix bug, and add position option

Modified: trunk/mapbender/http/plugins/mb_resultList_DetailPopup.js
===================================================================
--- trunk/mapbender/http/plugins/mb_resultList_DetailPopup.js	2010-03-11 09:50:07 UTC (rev 5744)
+++ trunk/mapbender/http/plugins/mb_resultList_DetailPopup.js	2010-03-11 09:52:59 UTC (rev 5745)
@@ -1,6 +1,6 @@
 
-Mapbender.modules[options.target].rowclick.register(function(row){
-	var me = Mapbender.modules[options.target];
+Mapbender.modules[options.target[0]].rowclick.register(function(row){
+	var me = Mapbender.modules[options.target[0]];
 	var modelIndex = $(row).data("modelindex");
 	var feature = me.model.getFeature(modelIndex);
 
@@ -54,7 +54,7 @@
 	bbox[0] = bbox[0].minus(buffer);
 	bbox[1] = bbox[1].plus(buffer);
 
-	var map = Mapbender.modules[me.options.target[0]];
+	var map = Mapbender.modules[options.target[1]];
 
 	map.calculateExtent(
 		new Mapbender.Extent(bbox[0], bbox[1])



More information about the Mapbender_commits mailing list