mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-01 02:07:50 +02:00
use selected class for user status elements
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user