mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
14 lines
No EOL
353 B
JavaScript
14 lines
No EOL
353 B
JavaScript
Discourse.AdminDashboard = Discourse.Model.extend({});
|
|
|
|
Discourse.AdminDashboard.reopenClass({
|
|
find: function() {
|
|
var model = Discourse.AdminDashboard.create();
|
|
return $.ajax("/admin/dashboard", {
|
|
type: 'GET',
|
|
success: function(json) {
|
|
model.mergeAttributes(json);
|
|
model.set('loaded', true);
|
|
}
|
|
});
|
|
}
|
|
}); |