mirror of
https://github.com/discourse/discourse.git
synced 2025-09-11 21:04:42 +08:00
REFACTOR: Remove Discourse.Ajax
This commit is contained in:
parent
56f07529bb
commit
b8125b3512
111 changed files with 567 additions and 549 deletions
|
@ -1,3 +1,4 @@
|
|||
import { ajax } from 'discourse/lib/ajax';
|
||||
export default Ember.Controller.extend({
|
||||
|
||||
/**
|
||||
|
@ -29,7 +30,7 @@ export default Ember.Controller.extend({
|
|||
});
|
||||
|
||||
var self = this;
|
||||
Discourse.ajax("/admin/email/test", {
|
||||
ajax("/admin/email/test", {
|
||||
type: 'POST',
|
||||
data: { email_address: this.get('testEmailAddress') }
|
||||
}).then(function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue