summaryrefslogtreecommitdiff
path: root/public/static/js/geostop.js
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-04-04 08:46:03 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-04-04 08:46:03 +0200
commit165d74936a1a16c11ed7da4b80f046634347f30d (patch)
tree19778845a67be922d2628a2ae77e8e17d095237b /public/static/js/geostop.js
parent1124fe508ea56eb28236d0bc10912504c834a455 (diff)
geostop, geotrain: handle network errors3.12.2
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…');
};