mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
postTools cleanup
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
/* globals define, app, templates, translator, socket, bootbox, config, ajaxify, RELATIVE_PATH */
|
||||
|
||||
define(['forum/pagination', 'forum/topic/threadTools'], function(pagination, threadTools) {
|
||||
define(['forum/pagination', 'forum/topic/threadTools', 'forum/topic/postTools'], function(pagination, threadTools, postTools) {
|
||||
var Topic = {},
|
||||
infiniteLoaderActive = false,
|
||||
scrollingToPost = false,
|
||||
@@ -67,12 +67,11 @@ define(['forum/pagination', 'forum/topic/threadTools'], function(pagination, thr
|
||||
set_pinned_state(true);
|
||||
}
|
||||
|
||||
postTools.init(tid, thread_state);
|
||||
threadTools.init(tid, thread_state);
|
||||
|
||||
|
||||
fixDeleteStateForPosts();
|
||||
|
||||
|
||||
enableInfiniteLoading();
|
||||
|
||||
var bookmark = localStorage.getItem('topic:' + tid + ':bookmark');
|
||||
|
||||
Reference in New Issue
Block a user