Skip to content

Commit

Permalink
fixed scrolling issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogfalo committed Nov 1, 2014
1 parent 6cf5f08 commit 9526a16
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,11 @@
$index = 0;
}
// Change url to current tab
console.log($active);
window.location.hash = $active.attr('href');
if (location.hash) {
window.scrollTo(0, 0);
}

$content.show();

// Update indicator
Expand Down

0 comments on commit 9526a16

Please sign in to comment.