mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 16:24:55 +00:00
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…
x
Reference in New Issue
Block a user