mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
15 lines
No EOL
363 B
JavaScript
15 lines
No EOL
363 B
JavaScript
Discourse.Report = Discourse.Model.extend({});
|
|
|
|
Discourse.Report.reopenClass({
|
|
find: function(type) {
|
|
var model = Discourse.Report.create();
|
|
jQuery.ajax("/admin/reports/" + type, {
|
|
type: 'GET',
|
|
success: function(json) {
|
|
model.mergeAttributes(json.report);
|
|
model.set('loaded', true);
|
|
}
|
|
});
|
|
return(model);
|
|
}
|
|
}); |