|
|
@ -4,19 +4,15 @@
|
|
|
|
/* globals config, app, ajaxify, define, socket, templates, translator, utils */
|
|
|
|
/* globals config, app, ajaxify, define, socket, templates, translator, utils */
|
|
|
|
|
|
|
|
|
|
|
|
define('forum/topic/events', [
|
|
|
|
define('forum/topic/events', [
|
|
|
|
'forum/topic/browsing',
|
|
|
|
|
|
|
|
'forum/topic/postTools',
|
|
|
|
'forum/topic/postTools',
|
|
|
|
'forum/topic/threadTools',
|
|
|
|
'forum/topic/threadTools',
|
|
|
|
'forum/topic/posts',
|
|
|
|
'forum/topic/posts',
|
|
|
|
'components'
|
|
|
|
'components'
|
|
|
|
], function(browsing, postTools, threadTools, posts, components) {
|
|
|
|
], function(postTools, threadTools, posts, components) {
|
|
|
|
|
|
|
|
|
|
|
|
var Events = {};
|
|
|
|
var Events = {};
|
|
|
|
|
|
|
|
|
|
|
|
var events = {
|
|
|
|
var events = {
|
|
|
|
'event:user_enter': browsing.onUserEnter,
|
|
|
|
|
|
|
|
'event:user_leave': browsing.onUserLeave,
|
|
|
|
|
|
|
|
'event:user_status_change': browsing.onUserStatusChange,
|
|
|
|
|
|
|
|
'event:voted': updatePostVotesAndUserReputation,
|
|
|
|
'event:voted': updatePostVotesAndUserReputation,
|
|
|
|
'event:favourited': updateFavouriteCount,
|
|
|
|
'event:favourited': updateFavouriteCount,
|
|
|
|
|
|
|
|
|
|
|
|