Skip to content

Node.js based forum software built for the modern web

user/status: don't touch the other classes

psychobunnyb66a58dd529e
diff --git a/public/src/app.js b/public/src/app.js
index 11b82a51e0..6fb289b041 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -493,7 +493,10 @@ app.cacheBuster = null;
if(err) {
return app.alertError(err.message);
}
- $('[component="user/status"]').attr('class', 'fa fa-circle status ' + status);
+ $('[component="user/status"]')
+ .removeClass('away online dnd offline')
+ .addClass(status);
+
app.user.status = status;
});
e.preventDefault();