FIX: Discourse.ajax is deprecated.

This commit is contained in:
Guo Xiang Tan 2016-07-28 18:20:24 +08:00
parent c449bbe882
commit 0128fdfc46

View File

@ -329,7 +329,7 @@ Post.reopenClass({
},
mergePosts(selectedPosts) {
return Discourse.ajax("/posts/merge_posts", {
return ajax("/posts/merge_posts", {
type: 'PUT',
data: { post_ids: selectedPosts.map(p => p.get('id')) }
}).catch(() => {