mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-29 10:36:52 -05:00
f661fa609e
http://meta.discourse.org/t/is-it-better-for-discourse-to-use-javascript-or-coffeescript/3153
15 lines
367 B
JavaScript
15 lines
367 B
JavaScript
(function() {
|
|
|
|
Discourse.AdminFlagsActiveRoute = Discourse.Route.extend({
|
|
model: function() {
|
|
return Discourse.FlaggedPost.findAll('active');
|
|
},
|
|
setupController: function(controller, model) {
|
|
var c;
|
|
c = this.controllerFor('adminFlags');
|
|
c.set('content', model);
|
|
return c.set('query', 'active');
|
|
}
|
|
});
|
|
|
|
}).call(this);
|