summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-10-02 20:57:17 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-10-02 20:57:17 +0200
commit655addf1dcdfaecb6dc420c99a4857a4f6bd4571 (patch)
treee351f5ae7b081c67dd035622f010f0cd12ff8afe
parente4814b323de6412225b338471b9a5bcd5af13a4b (diff)
collapse.js: Add efa query parameters for efa trips
-rw-r--r--public/static/js/collapse.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/public/static/js/collapse.js b/public/static/js/collapse.js
index 6664795..a94b227 100644
--- a/public/static/js/collapse.js
+++ b/public/static/js/collapse.js
@@ -113,6 +113,9 @@ function dbf_reg_handlers() {
if (param.get('detailed')) {
suffix += '&detailed=1';
}
+ if (param.get('efa') && param.get('efa') != '0') {
+ suffix += '&efa=' + param.get('efa') + '&highlight=' + trainElem.data('station');
+ }
if (param.get('hafas') && param.get('hafas') != '0') {
suffix += '&hafas=' + param.get('hafas') + '&highlight=' + trainElem.data('station');
}