summaryrefslogtreecommitdiff
path: root/public/static/js
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-03-27 14:59:20 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-03-27 14:59:20 +0100
commit51b52327caa311a851c50951a5c4b9b37ccf0ed8 (patch)
treefc7f188e9a7b5c8c0cf3c80d71478205306708ef /public/static/js
parent4329fde714614c28e12f45892c486c0989c85886 (diff)
map: support non-DB HAFAS backends, including ÖBB
Diffstat (limited to 'public/static/js')
-rw-r--r--public/static/js/map-refresh.js3
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);