Skip to content

Commit

Permalink
Make site title a clickable nav element
Browse files Browse the repository at this point in the history
  • Loading branch information
philtr committed Nov 29, 2015
1 parent 9d571cc commit c5a640d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _assets/javascripts/components/_navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ function initMenuToggler() {
}

function initNavHighlighter() {
$("li.nav-link").on('click', function(e) {
$(this).siblings().removeClass("active-nav-item");
$("li.nav-link, a.logo").on('click', function(e) {
$("li.nav-link, a.logo").removeClass("active-nav-item");
$(this).addClass("active-nav-item");
});
}

0 comments on commit c5a640d

Please sign in to comment.