This commit is contained in:
barisusakli
2015-12-24 12:08:10 +02:00
parent dffb57ba14
commit 687d29a44b
6 changed files with 214 additions and 60 deletions

View File

@@ -2,7 +2,13 @@
/* globals define, app, ajaxify, socket, bootbox, templates */
define('forum/topic/threadTools', ['forum/topic/fork', 'forum/topic/move', 'components', 'translator'], function(fork, move, components, translator) {
define('forum/topic/threadTools', [
'forum/topic/fork',
'forum/topic/move',
'forum/topic/delete-posts',
'components',
'translator'
], function(fork, move, deletePosts, components, translator) {
var ThreadTools = {};
@@ -64,6 +70,7 @@ define('forum/topic/threadTools', ['forum/topic/fork', 'forum/topic/move', 'comp
return false;
});
deletePosts.init();
fork.init();
components.get('topic').on('click', '[component="topic/follow"], [component="topic/unfollow"]', follow);