From 51b52327caa311a851c50951a5c4b9b37ccf0ed8 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 27 Mar 2024 14:59:20 +0100 Subject: map: support non-DB HAFAS backends, including ÖBB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/js/map-refresh.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'public') 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); -- cgit v1.2.3