Skip to content
Snippets Groups Projects
Commit dd177c54 authored by Chris Lawton's avatar Chris Lawton
Browse files

don't append a hash to the url when clicking back to top link

parent ba1a3410
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,10 @@ ...@@ -27,7 +27,10 @@
}); });
// Scroll to the top of the activity feed // Scroll to the top of the activity feed
$('.js-to-top').click(() => $('.js-activity-feed').animate({scrollTop: 0}, 250)); $('.js-to-top').click((e) => {
e.preventDefault();
$('.js-activity-feed').animate({scrollTop: 0}, 250);
});
// Collaps long comments in activity feed. // Collaps long comments in activity feed.
$('.feed__item').each(function () { $('.feed__item').each(function () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment