psychobunny 10 years ago
parent ca332d23c0
commit f734d47bef

@ -20,7 +20,8 @@ define('forum/account/header', function() {
function selectActivePill() { function selectActivePill() {
$('.account-sub-links li').removeClass('active').each(function() { $('.account-sub-links li').removeClass('active').each(function() {
var href = $(this).find('a').attr('href'); var href = $(this).find('a').attr('href');
if (window.location.href.indexOf(href) !== -1) {
if (href === window.location.pathname) {
$(this).addClass('active'); $(this).addClass('active');
return false; return false;
} }

Loading…
Cancel
Save