Removed many unnecessary paths that included content.x when just x would do.

This commit is contained in:
Robin Ward
2013-05-20 15:27:58 -04:00
parent 9544cfd7dc
commit 42248a7164
24 changed files with 167 additions and 173 deletions

View File

@@ -6,7 +6,7 @@
@namespace Discourse
@module Discourse
**/
Discourse.AdminFlagsController = Ember.Controller.extend({
Discourse.AdminFlagsController = Ember.ArrayController.extend({
/**
Clear all flags on a post
@@ -17,10 +17,10 @@ Discourse.AdminFlagsController = Ember.Controller.extend({
clearFlags: function(item) {
var _this = this;
item.clearFlags().then((function() {
_this.content.removeObject(item);
}), (function() {
_this.removeObject(item);
}), function() {
bootbox.alert(Em.String.i18n("admin.flags.error"));
}));
});
},
/**
@@ -32,10 +32,10 @@ Discourse.AdminFlagsController = Ember.Controller.extend({
deletePost: function(item) {
var _this = this;
item.deletePost().then((function() {
_this.content.removeObject(item);
}), (function() {
_this.removeObject(item);
}), function() {
bootbox.alert(Em.String.i18n("admin.flags.error"));
}));
});
},
/**