From c6436bc542a41d60c6a3212770c3d0d6eb2c4cba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 24 Aug 2022 09:48:56 -0400 Subject: [PATCH] fix: users navpills --- public/src/client/users.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/src/client/users.js b/public/src/client/users.js index e0d70748e4..548f868c91 100644 --- a/public/src/client/users.js +++ b/public/src/client/users.js @@ -12,7 +12,9 @@ define('forum/users', [ app.enterRoom('user_list'); const section = utils.param('section') ? ('?section=' + utils.param('section')) : ''; - $('.nav-pills li').removeClass('active').find('a[href="' + window.location.pathname + section + '"]').parent() + const navItems = $('.nav-pills li'); + navItems.find('a').removeClass('active'); + navItems.find('a[href="' + window.location.pathname + section + '"]') .addClass('active'); Users.handleSearch();