diff --git a/public/src/client/account/header.js b/public/src/client/account/header.js index c12c25701f..dabfe5dff7 100644 --- a/public/src/client/account/header.js +++ b/public/src/client/account/header.js @@ -20,8 +20,6 @@ define('forum/account/header', [ AccountHeader.init = function () { isAdminOrSelfOrGlobalMod = ajaxify.data.isAdmin || ajaxify.data.isSelf || ajaxify.data.isGlobalModerator; - selectActivePill(); - handleImageChange(); if (isAdminOrSelfOrGlobalMod) { @@ -61,17 +59,6 @@ define('forum/account/header', [ components.get('account/unblock').on('click', () => toggleBlockAccount('unblock')); }; - function selectActivePill() { - $('.account-sub-links li a').removeClass('active').each(function () { - const href = $(this).attr('href'); - - if (decodeURIComponent(href) === decodeURIComponent(window.location.pathname)) { - $(this).addClass('active'); - return false; - } - }); - } - function handleImageChange() { $('[component="profile/change/picture"]').on('click', function () { AccountsPicture.openChangeModal();