remove old pill select code

This commit is contained in:
Barış Soner Uşaklı
2026-03-09 21:03:22 -04:00
parent c83087181c
commit 2091b547ca

View File

@@ -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();