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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Aug 22 12:30:07 PDT 2012


Author: armin11
Date: 2012-08-22 12:30:03 -0700 (Wed, 22 Aug 2012)
New Revision: 8469

Modified:
   trunk/mapbender/http/javascripts/mb_downloadFeedClient.js
Log:
Bugfix

Modified: trunk/mapbender/http/javascripts/mb_downloadFeedClient.js
===================================================================
--- trunk/mapbender/http/javascripts/mb_downloadFeedClient.js	2012-08-22 10:41:05 UTC (rev 8468)
+++ trunk/mapbender/http/javascripts/mb_downloadFeedClient.js	2012-08-22 19:30:03 UTC (rev 8469)
@@ -69,6 +69,7 @@
 	//initialize mapframes
 	mapframe_dataset_list.setCenter(new OpenLayers.LonLat(7, 50), 7);
 	mapframe_file_list.setCenter(new OpenLayers.LonLat(7, 50), 7);
+	resetForm();
 	//start parsing when no empty string was found in input for url
 	if ($('#download_feed_url').val() != "") {
 		method =  "getServiceFeedObjectFromUrl";
@@ -79,6 +80,7 @@
 	//initialize button for load service feed - the first feed will be parsed.
 	$(document).ready(function(e) {
     		$('#download_feed_button').click(function() {
+			resetForm();
 			method =  "getServiceFeedObjectFromUrl";
         		data = $("#download_feed_url").val();
 			//call server by ajax function
@@ -86,7 +88,7 @@
     		});
 	});
 	//don't show elements of dataset feed
-	resetForm();
+	//
 }
 
 //central function to call server by ajax, result is a featureCollection which is generated by mapbenders server component



More information about the Mapbender_commits mailing list