From cad349a58334474066c8bcf30e1dddd2d2964ac7 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 21 Feb 2019 17:32:24 +0100 Subject: remove automatic location.hash updates for now turned out they did more harm than good (as in, leading to confusing history behaviour) --- public/static/collapse.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'public/static/collapse.js') diff --git a/public/static/collapse.js b/public/static/collapse.js index bdfaa9f..1dc1654 100644 --- a/public/static/collapse.js +++ b/public/static/collapse.js @@ -16,10 +16,10 @@ $(document).ready(function() { $(this).addClass('collapsed-moreinfo'); // Setting an empty hash causes the browser to scroll back // to the top -- we don't want that. - var posX = window.pageXOffset; - var posY = window.pageYOffset; - document.location.hash = ''; - window.scrollTo(posX, posY); + //var posX = window.pageXOffset; + //var posY = window.pageYOffset; + //document.location.hash = ''; + //window.scrollTo(posX, posY); } else { $('.moreinfo').each(function() { @@ -30,7 +30,7 @@ $(document).ready(function() { }); $(this).removeClass('collapsed-moreinfo'); $(this).addClass('expanded-moreinfo'); - document.location.hash = $(this).data('train'); + //document.location.hash = $(this).data('train'); } }); }); -- cgit v1.2.3