Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
no need to select elements twice
  • Loading branch information
kraih committed Nov 19, 2015
1 parent 80e83f0 commit 839a9fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Mojolicious/resources/templates/mojo/menubar.html.ep
Expand Up @@ -127,8 +127,7 @@
});
});
$(document).ready(function () {
$('a[href^="#"]').addClass('mojoscroll');
$('.mojoscroll').click(function (e) {
$('a[href^="#"]').addClass('​mojoscroll').click(function (e) {
e.preventDefault();
e.stopPropagation();
var hash = '#' + this.href.split('#')[1];
Expand Down

0 comments on commit 839a9fe

Please sign in to comment.