Update arguments in action:posts.loaded

v1.18.x
Mega 11 years ago
parent df0e924714
commit 16c5c18165

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

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

Loading…
Cancel
Save