mirror of
https://github.com/discourse/discourse.git
synced 2025-01-25 08:40:45 +08:00
16 lines
396 B
JavaScript
16 lines
396 B
JavaScript
Discourse.AdminDashboard = Discourse.Model.extend({});
|
|
|
|
Discourse.AdminDashboard.reopenClass({
|
|
find: function() {
|
|
var model = Discourse.AdminDashboard.create();
|
|
return $.ajax(Discourse.getURL("/admin/dashboard"), {
|
|
type: 'GET',
|
|
dataType: 'json',
|
|
success: function(json) {
|
|
model.mergeAttributes(json);
|
|
model.set('loaded', true);
|
|
}
|
|
});
|
|
}
|
|
});
|