fix user status change in topics

v1.18.x
barisusakli 9 years ago
parent 3ca618795f
commit 9753a6d489

@ -13,6 +13,7 @@ define('forum/topic/events', [
var Events = {};
var events = {
'event:user_status_change': onUserStatusChange,
'event:voted': updatePostVotesAndUserReputation,
'event:favourited': updateFavouriteCount,
@ -65,6 +66,10 @@ define('forum/topic/events', [
}
};
function onUserStatusChange(data) {
app.updateUserStatus($('[data-uid="' + data.uid + '"] [component="user/status"]'), data.status);
}
function updatePostVotesAndUserReputation(data) {
var votes = components.get('post/vote-count', data.post.pid),
reputationElements = $('.reputation[data-uid="' + data.post.uid + '"]');

Loading…
Cancel
Save