mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-26 06:41:22 -04:00
FIX: Discourse.ajax
is deprecated.
This commit is contained in:
parent
c449bbe882
commit
0128fdfc46
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue