mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 05:50:14 +08:00
remove deprecated method
This commit is contained in:
parent
420739e12c
commit
7a831857fc
|
@ -133,7 +133,7 @@ export function ajax() {
|
|||
if(args.type && args.type.toUpperCase() !== 'GET' && !Discourse.Session.currentProp('csrfToken')){
|
||||
promise = new Ember.RSVP.Promise((resolve, reject) => {
|
||||
ajaxObj = $.ajax(Discourse.getURL('/session/csrf'), {cache: false})
|
||||
.success(result => {
|
||||
.done(result => {
|
||||
Discourse.Session.currentProp('csrfToken', result.csrf);
|
||||
performAjax(resolve, reject);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user