mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
Fix: When a user changes his online status, all [component="user/status"] elements on a page are changing. The same bug appears in:
/user/* /users/* /topic/* /chats/* Cold load: http://i.imgur.com/OL2njmf.jpg After change my status: http://i.imgur.com/J6I8lOC.jpg
This commit is contained in:
@@ -485,7 +485,7 @@ app.cacheBuster = null;
|
||||
if(err) {
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
$('[component="user/status"]')
|
||||
$('[data-uid="' + app.user.uid + '"] [component="user/status"], [component="header/profilelink"] [component="user/status"]')
|
||||
.removeClass('away online dnd offline')
|
||||
.addClass(status);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user