diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-07-26 12:37:30 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-07-26 12:37:30 +0200 |
commit | 53c3dd8089755738df39e22bfd1b0c116d825cfc (patch) | |
tree | 88beae8622f67846a6214c72d9b2406aca669151 /public/static/js | |
parent | f5aa234d222083774c7a2dc90edd68ee6ed9f4cb (diff) |
shorten 'show_realtime=1' to 'rt=1'
Diffstat (limited to 'public/static/js')
-rw-r--r-- | public/static/js/collapse.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/static/js/collapse.js b/public/static/js/collapse.js index 95088e4..82420c7 100644 --- a/public/static/js/collapse.js +++ b/public/static/js/collapse.js @@ -102,8 +102,8 @@ 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'; + if (window.location.href.includes('rt=1') || window.location.href.includes('show_realtime=1')) { + suffix += '&rt=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); |