[Mapbender-commits] r7512 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Feb 1 15:13:38 EST 2011


Author: marc
Date: 2011-02-01 12:13:38 -0800 (Tue, 01 Feb 2011)
New Revision: 7512

Modified:
   trunk/mapbender/http/javascripts/mod_addWMSfromfilteredList_ajax.php
Log:
#761

Modified: trunk/mapbender/http/javascripts/mod_addWMSfromfilteredList_ajax.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_addWMSfromfilteredList_ajax.php	2011-02-01 20:07:43 UTC (rev 7511)
+++ trunk/mapbender/http/javascripts/mod_addWMSfromfilteredList_ajax.php	2011-02-01 20:13:38 UTC (rev 7512)
@@ -458,11 +458,11 @@
 							"callback: function (opt) {" +
 								"if (typeof opt === 'object' && opt.success) {" +
 									"var wmsId = parseInt(opt.wmsId, 10);" +
-									"var map = getMapObjByName('<?php echo $e_target[0]; ?>');" +
+									"var map = getMapObjByName('<?php echo $e_target[1]; ?>');" +
 									"handleSelectedWms(map.elementName, wmsId, 'visible', 0);" +
 									"handleSelectedWms(map.elementName, wmsId, 'querylayer', 0);" +
 								"}" +
-								"loadWmsCallback(opt);}});";
+								"loadWmsAndZoomCallback(opt);}});";
 				}
 				else {
 					var onClick = "mod_addWMSfromfilteredList(\"" +
@@ -470,7 +470,7 @@
 					wmsArray[i].version+"\", {" +
 					"zoomToExtent: 0, " +
 					"visible: 0, " +
-					"callback: loadWmsCallback" +
+					"callback: loadWmsAndZoomCallback" +
 					"});";
 				}
 				addTableRow(wmsArray[i].title, wmsArray[i].abstract, onClick);



More information about the Mapbender_commits mailing list