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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri May 25 05:37:10 EDT 2007


Author: christoph
Date: 2007-05-25 05:37:10 -0400 (Fri, 25 May 2007)
New Revision: 1362

Modified:
   trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
Log:
wfs conf ids are now passed via Element Vars and no longer by GET

Modified: trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php	2007-05-25 09:28:27 UTC (rev 1361)
+++ trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php	2007-05-25 09:37:10 UTC (rev 1362)
@@ -21,7 +21,6 @@
 session_start();
 $gui_id = $_SESSION["mb_user_gui"];
 
-$wfsConfIdString = $_REQUEST["wfs_conf"];
 $target = $_REQUEST["target"];
 $e_id_css = $_REQUEST["e_id_css"];
 
@@ -78,6 +77,7 @@
 		global_wfsConfObj = json;
 		var wfsCount = 0;
 		for (var wfsConfId in global_wfsConfObj) {
+			global_selectedWfsConfId = wfsConfId; 
 			if (typeof(global_wfsConfObj[wfsConfId] != 'function')) {
 				wfsCount++;
 			}
@@ -86,6 +86,7 @@
 			var e = parent.Mb_exception("no wfs conf id available.");
 		}
 		else if (wfsCount === 1) {
+			appendStyles();
 			appendWfsForm();
 		}
 		else {
@@ -272,7 +273,6 @@
 * geom -> commaseparated coordinates x1,y1,x2,y2 ...
 */
 function setResult(event, id){
-	console.log("setResult %s %s", event, id);
 	var index = parseInt(id.slice(4));
 
 	if (event == "over") {



More information about the Mapbender_commits mailing list