Barış Soner Uşaklı 6 years ago
parent c7e1c98a1f
commit 702be3f6de

@ -564,7 +564,9 @@ app.cacheBuster = null;
$('[data-uid="' + app.user.uid + '"] [component="user/status"], [component="header/profilelink"] [component="user/status"]')
.removeClass('away online dnd offline')
.addClass(status);
$('[component="header/usercontrol"] [data-status]').each(function () {
$(this).find('span').toggleClass('bold', $(this).attr('data-status') === status);
});
app.user.status = status;
});
e.preventDefault();

@ -135,6 +135,7 @@ module.exports = function (middleware) {
results.user.isGlobalMod = results.isGlobalMod;
results.user.isMod = !!results.isModerator;
results.user.privileges = results.privileges;
results.user[results.user.status] = true;
results.user.uid = parseInt(results.user.uid, 10);
results.user.email = String(results.user.email);

Loading…
Cancel
Save