mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
remove unnecessary ()
This commit is contained in:
parent
1636dce624
commit
26409dbef8
1 changed files with 8 additions and 8 deletions
|
@ -17,27 +17,27 @@ Discourse.AdminFlagsController = Ember.ArrayController.extend({
|
||||||
**/
|
**/
|
||||||
disagreeFlags: function(item) {
|
disagreeFlags: function(item) {
|
||||||
var adminFlagsController = this;
|
var adminFlagsController = this;
|
||||||
item.disagreeFlags().then((function() {
|
item.disagreeFlags().then(function() {
|
||||||
adminFlagsController.removeObject(item);
|
adminFlagsController.removeObject(item);
|
||||||
}), function() {
|
}, function() {
|
||||||
bootbox.alert(I18n.t("admin.flags.error"));
|
bootbox.alert(I18n.t("admin.flags.error"));
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
agreeFlags: function(item) {
|
agreeFlags: function(item) {
|
||||||
var adminFlagsController = this;
|
var adminFlagsController = this;
|
||||||
item.agreeFlags().then((function() {
|
item.agreeFlags().then(function() {
|
||||||
adminFlagsController.removeObject(item);
|
adminFlagsController.removeObject(item);
|
||||||
}), function() {
|
}, function() {
|
||||||
bootbox.alert(I18n.t("admin.flags.error"));
|
bootbox.alert(I18n.t("admin.flags.error"));
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
deferFlags: function(item) {
|
deferFlags: function(item) {
|
||||||
var adminFlagsController = this;
|
var adminFlagsController = this;
|
||||||
item.deferFlags().then((function() {
|
item.deferFlags().then(function() {
|
||||||
adminFlagsController.removeObject(item);
|
adminFlagsController.removeObject(item);
|
||||||
}), function() {
|
}, function() {
|
||||||
bootbox.alert(I18n.t("admin.flags.error"));
|
bootbox.alert(I18n.t("admin.flags.error"));
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -54,9 +54,9 @@ Discourse.AdminFlagsController = Ember.ArrayController.extend({
|
||||||
**/
|
**/
|
||||||
deletePost: function(post) {
|
deletePost: function(post) {
|
||||||
var adminFlagsController = this;
|
var adminFlagsController = this;
|
||||||
post.deletePost().then((function() {
|
post.deletePost().then(function() {
|
||||||
adminFlagsController.removeObject(post);
|
adminFlagsController.removeObject(post);
|
||||||
}), function() {
|
}, function() {
|
||||||
bootbox.alert(I18n.t("admin.flags.error"));
|
bootbox.alert(I18n.t("admin.flags.error"));
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue