fix: users navpills

This commit is contained in:
Barış Soner Uşaklı
2022-08-24 09:48:56 -04:00
parent b50f662d45
commit c6436bc542

View File

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