[Mapbender-commits] r5397 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jan 21 09:57:05 EST 2010


Author: christoph
Date: 2010-01-21 09:57:04 -0500 (Thu, 21 Jan 2010)
New Revision: 5397

Modified:
   trunk/mapbender/http/php/mod_wfs_conf_interface.js
Log:
selector for checked radio buttons is :checked, not [checked]

Modified: trunk/mapbender/http/php/mod_wfs_conf_interface.js
===================================================================
--- trunk/mapbender/http/php/mod_wfs_conf_interface.js	2010-01-21 12:55:14 UTC (rev 5396)
+++ trunk/mapbender/http/php/mod_wfs_conf_interface.js	2010-01-21 14:57:04 UTC (rev 5397)
@@ -141,7 +141,7 @@
 			"columns" : [
 				"geom", "search", "pos", "minInput", "styleId", "toUpper", 
 				"label", "labelId", "show", "respos", "showDetail", "detailPos", 
-				"authVarname", "operator", "helptext"
+				"formElementHtml", "authVarname", "operator", "helptext"
 			]
 		},
 		{
@@ -319,15 +319,19 @@
 	//		(use case: "new WFS conf")
 
 	var getWfsConfType = function (id) {
-		var $checkedRadioButtons = $("#" + id + " input[checked]");
-		if ($checkedRadioButtons.size() > 0) {
-			return $checkedRadioButtons.get(0).value;
+		var $checkedRadioButtons = $("#" + id + " input:checked");
+		if ($checkedRadioButtons.length) {
+			return $checkedRadioButtons[0].value;
 		}
-		return "search";
+		var $firstRadioButtons = $("#" + id + " input");
+		if ($firstRadioButtons.length) {
+			return $firstRadioButtons[0].value;
+		}
+		return "download";
 	};
 	
 	var wfsConfTypeIsSelected = function () {
-		var $checkedRadioButtons = $("#new_wfs_metadata_radio_conftype input[checked]");
+		var $checkedRadioButtons = $("#new_wfs_metadata_radio_conftype input:checked");
 		return ($checkedRadioButtons.size() > 0);
 	};
 	



More information about the Mapbender_commits mailing list