Difference between revisions of "Team:TU Darmstadt/Templates/SideBarMenu"
Line 227: | Line 227: | ||
var href = $(this).attr('href'); | var href = $(this).attr('href'); | ||
if (href === path.substring(0, href.length)) { | if (href === path.substring(0, href.length)) { | ||
− | $(this).addClass('active'); | + | if (href !=== path) { |
+ | $(this).addClass('active'); | ||
+ | } | ||
} | } | ||
}); | }); |
Revision as of 21:20, 17 September 2015