remove deprecated method

This commit is contained in:
Sam 2018-03-08 14:53:09 +11:00
parent 420739e12c
commit 7a831857fc

View File

@ -133,7 +133,7 @@ export function ajax() {
if(args.type && args.type.toUpperCase() !== 'GET' && !Discourse.Session.currentProp('csrfToken')){ if(args.type && args.type.toUpperCase() !== 'GET' && !Discourse.Session.currentProp('csrfToken')){
promise = new Ember.RSVP.Promise((resolve, reject) => { promise = new Ember.RSVP.Promise((resolve, reject) => {
ajaxObj = $.ajax(Discourse.getURL('/session/csrf'), {cache: false}) ajaxObj = $.ajax(Discourse.getURL('/session/csrf'), {cache: false})
.success(result => { .done(result => {
Discourse.Session.currentProp('csrfToken', result.csrf); Discourse.Session.currentProp('csrfToken', result.csrf);
performAjax(resolve, reject); performAjax(resolve, reject);
}); });