Skip to content

Node.js based forum software built for the modern web

remove old pill select code

Barış Soner Uşaklı2091b547ca26
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();