summaryrefslogtreecommitdiff
path: root/public/static/js/geostop.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/static/js/geostop.js')
-rw-r--r--public/static/js/geostop.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/public/static/js/geostop.js b/public/static/js/geostop.js
index 253f000..34ba58e 100644
--- a/public/static/js/geostop.js
+++ b/public/static/js/geostop.js
@@ -56,7 +56,10 @@ $(function() {
};
var processLocation = function(loc) {
- $.post('/_geolocation', {lon: loc.coords.longitude, lat: loc.coords.latitude}, processResult);
+ $.post('/_geolocation', {lon: loc.coords.longitude, lat: loc.coords.latitude}, processResult).fail(function(jqXHR, textStatus, errorThrown) {
+ removeStatus();
+ showError("Netzwerkfehler: ", textStatus, errorThrown);
+ });
$('div.candidatestatus').text('Suche Bahnhöfe…');
};