diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-03-27 14:59:20 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-03-27 14:59:20 +0100 |
commit | 51b52327caa311a851c50951a5c4b9b37ccf0ed8 (patch) | |
tree | fc7f188e9a7b5c8c0cf3c80d71478205306708ef /public/static/js | |
parent | 4329fde714614c28e12f45892c486c0989c85886 (diff) |
map: support non-DB HAFAS backends, including ÖBB
Diffstat (limited to 'public/static/js')
-rw-r--r-- | public/static/js/map-refresh.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/public/static/js/map-refresh.js b/public/static/js/map-refresh.js index aa5629b..0389323 100644 --- a/public/static/js/map-refresh.js +++ b/public/static/js/map-refresh.js @@ -68,7 +68,8 @@ function dbf_anim_fine() { } function dbf_map_reload() { - $.get('/_ajax_mapinfo/' + j_reqid, function(data) { + const param = new URLSearchParams(window.location.search); + $.get('/_ajax_mapinfo/' + j_reqid + '?hafas=' + param.get('hafas'), function(data) { $('#infobox').html(data); dbf_map_parse(); setTimeout(dbf_map_reload, 61000); |