From f923c6dacf950143e34c3f69ffee8694156d8421 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 17 Jul 2022 13:32:40 +0200 Subject: do not lose show_realtime setting in detail views --- public/static/js/collapse.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'public/static/js') diff --git a/public/static/js/collapse.js b/public/static/js/collapse.js index 8aed392..95088e4 100644 --- a/public/static/js/collapse.js +++ b/public/static/js/collapse.js @@ -102,6 +102,9 @@ function dbf_reg_handlers() { if (window.location.href.includes('past=1')) { suffix += '&past=1'; } + if (window.location.href.includes('show_realtime=1')) { + suffix += '&show_realtime=1'; + } history.pushState({'page':'traindetail','station':station,'train':trainElem.data('no')}, 'test', '/z/' + trainElem.data('train') + '/' + trainElem.data('station') + suffix); dbf_show_moreinfo(trainElem, false); }); -- cgit v1.2.3