mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-18 18:40:58 +01:00
remove old pill select code
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user