mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +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) {
|
if(err) {
|
||||||
return app.alertError(err.message);
|
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')
|
.removeClass('away online dnd offline')
|
||||||
.addClass(status);
|
.addClass(status);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user