Add stats to the admin dashboard

This commit is contained in:
Neil Lalonde
2013-03-07 11:07:59 -05:00
parent 24db302e70
commit 8927432a93
16 changed files with 301 additions and 16 deletions

View File

@ -2,7 +2,7 @@ Discourse.Report = Discourse.Model.extend({});
Discourse.Report.reopenClass({
find: function(type) {
var model = Discourse.Report.create();
var model = Discourse.Report.create({type: type});
$.ajax("/admin/reports/" + type, {
type: 'GET',
success: function(json) {