breaking: use component instead of nav-pills

so themes can use whatever they want for the user list menu
This commit is contained in:
Barış Soner Uşaklı
2023-01-06 12:59:51 -05:00
parent 83ee650d96
commit 66e8937692

View File

@@ -12,7 +12,7 @@ define('forum/users', [
app.enterRoom('user_list');
const section = utils.param('section') ? ('?section=' + utils.param('section')) : '';
const navItems = $('.nav-pills li');
const navItems = $('[component="user/list/menu"]');
navItems.find('a').removeClass('active');
navItems.find('a[href="' + window.location.pathname + section + '"]')
.addClass('active');