Merge pull request #2682 from MegaGM/action.posts.loaded

Change argument in action:posts.loaded
This commit is contained in:
Barış Soner Uşaklı
2015-02-17 12:26:19 -05:00
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ define('forum/home', function() {
recentPosts.last().remove();
}
$(window).trigger('action:posts.loaded');
$(window).trigger('action:posts.loaded', {posts: [post]});
});
}

View File

@@ -127,7 +127,7 @@ define('forum/topic/posts', [
pids.push(data.posts[i].pid);
}
$(window).trigger('action:posts.loaded', pids);
$(window).trigger('action:posts.loaded', {posts: data.posts});
onNewPostsLoaded(html, pids);
callback(true);
});