Difference between revisions of "Team:TU Darmstadt/Templates/SideBarMenu"
Line 205: | Line 205: | ||
$('#menuContainer a').each(function () { | $('#menuContainer a').each(function () { | ||
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'); | $(this).addClass('active'); | ||
} | } |
Revision as of 20:28, 17 September 2015