Skip to content

Commit

Permalink
Merge pull request #30 from alexsuslin/bug-29
Browse files Browse the repository at this point in the history
fixing jquery selector for smooth scroll
  • Loading branch information
lipkau authored Mar 21, 2019
2 parents 94fe4dd + 0d56697 commit 4db0b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/javascript/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ $(document).ready(function () {
/**
* Use smoothScroll for links that navigate inside the same page
*/
$('a[href*="#"]:not([href="#"]), a.inpage-navigation[href*="#"]').on('click', function (event) {
$('a[href^="#"]:not([href="#"]), a.inpage-navigation[href*="#"]').on('click', function (event) {
event.preventDefault();
smoothScroll($(this.hash));
});
Expand Down

0 comments on commit 4db0b04

Please sign in to comment.