Cache dashboard data in the controller, not the report model

This commit is contained in:
Neil Lalonde
2013-03-20 13:54:32 -04:00
parent 1e4dd3ea0c
commit c3c25b894a
4 changed files with 92 additions and 202 deletions

View File

@@ -5,6 +5,7 @@ Discourse.AdminDashboard.reopenClass({
var model = Discourse.AdminDashboard.create();
return $.ajax("/admin/dashboard", {
type: 'GET',
dataType: 'json',
success: function(json) {
model.mergeAttributes(json);
model.set('loaded', true);