summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-10-01 22:17:25 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-10-01 22:17:25 +0200
commit7fb44a0ad3f02064a9f774f7482108bdadd4623f (patch)
tree4fffbe92b19bb80d7f3bff6c374cb29d87cf4937 /public
parent6af85253f33bafd722e04f62a7418510c971fcdd (diff)
Prepare for detail view with efa backend
Diffstat (limited to 'public')
-rw-r--r--public/static/js/collapse.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/static/js/collapse.js b/public/static/js/collapse.js
index d7d1e3b..6664795 100644
--- a/public/static/js/collapse.js
+++ b/public/static/js/collapse.js
@@ -124,6 +124,8 @@ function dbf_reg_handlers() {
}
if (param.get('hafas') && param.get('hafas') != '0') {
history.pushState({'page':'traindetail','jid':trainElem.data('jid')}, 'test', '/z/' + trainElem.data('jid') + suffix);
+ } else if (param.get('efa') && param.get('efa') != '0') {
+ history.pushState({'page':'traindetail','jid':trainElem.data('jid')}, 'test', '/z/' + trainElem.data('jid') + suffix);
} else {
history.pushState({'page':'traindetail','station':station,'train':trainElem.data('no')}, 'test', '/z/' + trainElem.data('train') + '/' + trainElem.data('station') + suffix);
}