Difference between revisions of "Team:TU Darmstadt/Templates/SideBarMenu"
Line 195: | Line 195: | ||
function setNavigation() { | function setNavigation() { | ||
var path = window.location.pathname; | var path = window.location.pathname; | ||
− | path = path.replace(/\/$/, ""); | + | //path = path.replace(/\/$/, ""); |
− | path = decodeURIComponent(path); | + | //path = decodeURIComponent(path); |
$('#menuContainer a').each(function () { | $('#menuContainer a').each(function () { | ||
Line 203: | Line 203: | ||
$(this).addClass('active'); | $(this).addClass('active'); | ||
} | } | ||
+ | $(this).html(path); | ||
}); | }); | ||
} | } |
Revision as of 18:45, 17 September 2015