BUGFIX: do not forget Ember's default behavior

This commit is contained in:
Régis Hanol 2014-02-17 21:58:28 +01:00
parent f81680d5c7
commit 351719f7c1

View file

@ -12,7 +12,8 @@ Discourse.AdminEmailLogsRoute = Discourse.Route.extend({
return Discourse.EmailLog.findAll({ status: this.get("status") }); return Discourse.EmailLog.findAll({ status: this.get("status") });
}, },
setupController: function(controller) { setupController: function(controller, model) {
this._super(controller, model);
// resets the filters // resets the filters
controller.set("filter", { status: this.get("status") }); controller.set("filter", { status: this.get("status") });
}, },