mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Discourse.ajax
is deprecated.
This commit is contained in:
parent
c449bbe882
commit
0128fdfc46
@ -329,7 +329,7 @@ Post.reopenClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
mergePosts(selectedPosts) {
|
mergePosts(selectedPosts) {
|
||||||
return Discourse.ajax("/posts/merge_posts", {
|
return ajax("/posts/merge_posts", {
|
||||||
type: 'PUT',
|
type: 'PUT',
|
||||||
data: { post_ids: selectedPosts.map(p => p.get('id')) }
|
data: { post_ids: selectedPosts.map(p => p.get('id')) }
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user