summaryrefslogtreecommitdiff
path: root/public/static/collapse.js
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-02-21 17:32:24 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-02-21 17:32:24 +0100
commitcad349a58334474066c8bcf30e1dddd2d2964ac7 (patch)
tree1ff72316dd33e3ef7eb740adcfe050ecefb7ff0f /public/static/collapse.js
parent8fc681c572314687d036e4d56486f013ff1d2048 (diff)
remove automatic location.hash updates for now1.16
turned out they did more harm than good (as in, leading to confusing history behaviour)
Diffstat (limited to 'public/static/collapse.js')
-rw-r--r--public/static/collapse.js10
1 files changed, 5 insertions, 5 deletions
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');
}
});
});