From f10e3356a29d4c0abb6fff3e470fba3c4ac8a612 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 27 Oct 2024 15:47:46 +0100 Subject: map-refresh: handle lack of efa/hafas query parameters --- public/static/js/map-refresh.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/static/js') diff --git a/public/static/js/map-refresh.js b/public/static/js/map-refresh.js index 1d8453a..c54f428 100644 --- a/public/static/js/map-refresh.js +++ b/public/static/js/map-refresh.js @@ -69,7 +69,7 @@ function dbf_anim_fine() { function dbf_map_reload() { const param = new URLSearchParams(window.location.search); - $.get('/_ajax_mapinfo/' + j_reqid + '?efa=' + param.get('efa') + '&hafas=' + param.get('hafas'), function(data) { + $.get('/_ajax_mapinfo/' + j_reqid + '?efa=' + (param.get('efa') || '') + '&hafas=' + (param.get('hafas') || ''), function(data) { $('#infobox').html(data); dbf_map_parse(); setTimeout(dbf_map_reload, 61000); -- cgit v1.2.3