summaryrefslogtreecommitdiff
path: root/public/static/geolocation.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/static/geolocation.js')
-rw-r--r--public/static/geolocation.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/static/geolocation.js b/public/static/geolocation.js
index 63c08e8..1d37c96 100644
--- a/public/static/geolocation.js
+++ b/public/static/geolocation.js
@@ -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) {