FIX: `Discourse.ajax` is deprecated.
This commit is contained in:
parent
c449bbe882
commit
0128fdfc46
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in New Issue