diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-04-04 08:46:03 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-04-04 08:46:03 +0200 |
commit | 165d74936a1a16c11ed7da4b80f046634347f30d (patch) | |
tree | 19778845a67be922d2628a2ae77e8e17d095237b /public/static/js/geostop.js | |
parent | 1124fe508ea56eb28236d0bc10912504c834a455 (diff) |
geostop, geotrain: handle network errors3.12.2
Diffstat (limited to 'public/static/js/geostop.js')
-rw-r--r-- | public/static/js/geostop.js | 5 |
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…'); }; |