Skip to content
Snippets Groups Projects
Commit 8891536c authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray
Browse files

Refactor JS

parent 59e5748a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -139,9 +139,7 @@ require('./flash');
 
scrollToElement(container) {
if (location.hash) {
const offset = 0 - (
$('.js-tabs-affix').outerHeight()
);
const offset = -$('.js-tabs-affix').outerHeight();
const $el = $(`${container} ${location.hash}:not(.match)`);
if ($el.length) {
$.scrollTo($el[0], { offset });
Loading
Loading
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