correctly hide/show user in browsing users

This commit is contained in:
barisusakli
2015-07-30 15:14:02 -04:00
parent 924692404d
commit e592499d48
2 changed files with 9 additions and 6 deletions

View File

@@ -185,7 +185,8 @@ app.cacheBuster = null;
enter: room,
username: app.user.username,
userslug: app.user.userslug,
picture: app.user.picture
picture: app.user.picture,
status: app.user.status
}, function(err) {
if (err) {
app.alertError(err.message);
@@ -454,6 +455,7 @@ app.cacheBuster = null;
return app.alertError(err.message);
}
$('#logged-in-menu #user_label #user-profile-link>i').attr('class', 'fa fa-circle status ' + status);
app.user.status = status;
});
e.preventDefault();
});