diff options
Diffstat (limited to 'public/static/js/collapse.js')
-rw-r--r-- | public/static/js/collapse.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/public/static/js/collapse.js b/public/static/js/collapse.js index 5ea412c..faca7ca 100644 --- a/public/static/js/collapse.js +++ b/public/static/js/collapse.js @@ -91,9 +91,10 @@ function dbf_show_moreinfo(trainElem, keep_old) { } function dbf_reg_handlers() { - $('div.app > ul > li').click(function() { + $('div.app > ul > li').click(function(event) { const trainElem = $(this); const station = $('div.app').data('station'); + event.preventDefault(); var suffix = ''; if (window.location.href.includes('detailed=1')) { suffix = '?detailed=1'; |