single socket call on topic enter

This commit is contained in:
barisusakli
2014-08-05 17:09:52 -04:00
parent 39d6941603
commit 5ce0ebb4ac
2 changed files with 10 additions and 3 deletions

View File

@@ -72,9 +72,7 @@ define('forum/topic', dependencies, function(pagination, infinitescroll, threadT
$(window).trigger('action:topic.loaded');
socket.emit('topics.markAsRead', tid);
socket.emit('topics.markTopicNotificationsRead', tid);
socket.emit('topics.increaseViewCount', tid);
socket.emit('topics.enter', tid);
};
Topic.toTop = function() {