From 7fb44a0ad3f02064a9f774f7482108bdadd4623f Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 1 Oct 2024 22:17:25 +0200 Subject: Prepare for detail view with efa backend --- public/static/js/collapse.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'public/static/js/collapse.js') 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); } -- cgit v1.2.3