Commit 3bb39e37 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

geolocation.js: add error case if no stations were found

parent bbfbd717
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2,6 +2,8 @@ $(document).ready(function() {
	var processResult = function(data) {
		if (data.error) {
			$('div.candidatelist').text(data.error);
		} else if (data.candidates.length == 0) {
			$('div.candidatelist').text("Keine Bahnhöfe in 70km Umkreis gefunden");
		} else {
			$.each(data.candidates, function(i, candidate) {