use selected class for user status elements

isekai-main
Barış Soner Uşaklı 2 years ago
parent ae5d4025b2
commit 6b89884dd5

@ -30,7 +30,7 @@ define('forum/header', [
.removeClass('away online dnd offline')
.addClass(status);
$('[component="header/usercontrol"] [data-status]').each(function () {
$(this).find('span').toggleClass('fw-bold', $(this).attr('data-status') === status);
$(this).toggleClass('selected', $(this).attr('data-status') === status);
});
app.user.status = status;
});

Loading…
Cancel
Save