summaryrefslogtreecommitdiff
path: root/public/static/js
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-10-27 15:47:46 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-10-27 15:47:46 +0100
commitf10e3356a29d4c0abb6fff3e470fba3c4ac8a612 (patch)
treeb759f04f0a697334f278d26af7fdd744898ade38 /public/static/js
parentadb94e655e30e6b4a16ea799a23e2077ce00fc4c (diff)
map-refresh: handle lack of efa/hafas query parameters
Diffstat (limited to 'public/static/js')
-rw-r--r--public/static/js/map-refresh.js2
1 files changed, 1 insertions, 1 deletions
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') + '&amp;hafas=' + param.get('hafas'), function(data) {
+ $.get('/_ajax_mapinfo/' + j_reqid + '?efa=' + (param.get('efa') || '') + '&amp;hafas=' + (param.get('hafas') || ''), function(data) {
$('#infobox').html(data);
dbf_map_parse();
setTimeout(dbf_map_reload, 61000);