postTools cleanup

This commit is contained in:
barisusakli
2014-03-19 14:53:31 -04:00
parent 8ffaecaa4c
commit 363e7c23bd
2 changed files with 88 additions and 85 deletions

View File

@@ -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');