mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-15 20:21:36 +02:00
closes https://github.com/NodeBB/nodebb-theme-vanilla/issues/21 and https://github.com/NodeBB/nodebb-theme-persona/issues/31
This commit is contained in:
@@ -20,7 +20,8 @@ define('forum/account/header', function() {
|
||||
function selectActivePill() {
|
||||
$('.account-sub-links li').removeClass('active').each(function() {
|
||||
var href = $(this).find('a').attr('href');
|
||||
if (window.location.href.indexOf(href) !== -1) {
|
||||
|
||||
if (href === window.location.pathname) {
|
||||
$(this).addClass('active');
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user