mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +08:00
Convert all Ajax calls to use Discourse.ajax()
This commit is contained in:
@ -69,7 +69,7 @@ Discourse.Report = Discourse.Model.extend({
|
||||
Discourse.Report.reopenClass({
|
||||
find: function(type) {
|
||||
var model = Discourse.Report.create({type: type});
|
||||
$.ajax(Discourse.getURL("/admin/reports/") + type, {
|
||||
Discourse.ajax(Discourse.getURL("/admin/reports/") + type, {
|
||||
type: 'GET',
|
||||
success: function(json) {
|
||||
|
||||
|
Reference in New Issue
Block a user