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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Mar 23 04:30:58 EDT 2011


Author: armin11
Date: 2011-03-23 01:30:58 -0700 (Wed, 23 Mar 2011)
New Revision: 7717

Modified:
   trunk/mapbender/http/javascripts/mod_deleteWfsConf_client.html
Log:
Bugfix

Modified: trunk/mapbender/http/javascripts/mod_deleteWfsConf_client.html
===================================================================
--- trunk/mapbender/http/javascripts/mod_deleteWfsConf_client.html	2011-03-22 13:30:09 UTC (rev 7716)
+++ trunk/mapbender/http/javascripts/mod_deleteWfsConf_client.html	2011-03-23 08:30:58 UTC (rev 7717)
@@ -99,10 +99,16 @@
 	var obj2json = parent.$.toJSON(obj);
 	parent.mb_ajax_post("../php/mod_deleteWfsConf_server.php",{"obj":obj2json}, function (json,status){
 		if(status == 'success'){
-			var dsJson = eval('(' + json + ')');
+			var dsJson = json;
 			switch(obj['action']){
 				case "getServices":
-					appendServices(dsJson);
+					services['services'] = dsJson.services;
+					var wfsServices = services['services'];
+					if (dsJson.services.id.length > 0) {
+						appendServices(dsJson);
+					} else {
+						alert("You have no WFS registrated till now.....");
+					}
 				break;
 				case "getWfsConfData":
 					appendWfsConfData(dsJson);					
@@ -216,4 +222,4 @@
 </form>
 
 </body>
-</html>
\ No newline at end of file
+</html>



More information about the Mapbender_commits mailing list