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

Change argument in action:posts.loaded
v1.18.x
Barış Soner Uşaklı 10 years ago
commit fe1f4f84ec

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

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

Loading…
Cancel
Save