From 26409dbef87c9a4c609c72f0eb7c3d4464e673c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 12 Feb 2014 20:01:12 -0800 Subject: [PATCH] remove unnecessary () --- .../admin/controllers/admin_flags_controller.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/assets/javascripts/admin/controllers/admin_flags_controller.js b/app/assets/javascripts/admin/controllers/admin_flags_controller.js index c369ec8ea..c23aed6c8 100644 --- a/app/assets/javascripts/admin/controllers/admin_flags_controller.js +++ b/app/assets/javascripts/admin/controllers/admin_flags_controller.js @@ -17,27 +17,27 @@ Discourse.AdminFlagsController = Ember.ArrayController.extend({ **/ disagreeFlags: function(item) { var adminFlagsController = this; - item.disagreeFlags().then((function() { + item.disagreeFlags().then(function() { adminFlagsController.removeObject(item); - }), function() { + }, function() { bootbox.alert(I18n.t("admin.flags.error")); }); }, agreeFlags: function(item) { var adminFlagsController = this; - item.agreeFlags().then((function() { + item.agreeFlags().then(function() { adminFlagsController.removeObject(item); - }), function() { + }, function() { bootbox.alert(I18n.t("admin.flags.error")); }); }, deferFlags: function(item) { var adminFlagsController = this; - item.deferFlags().then((function() { + item.deferFlags().then(function() { adminFlagsController.removeObject(item); - }), function() { + }, function() { bootbox.alert(I18n.t("admin.flags.error")); }); }, @@ -54,9 +54,9 @@ Discourse.AdminFlagsController = Ember.ArrayController.extend({ **/ deletePost: function(post) { var adminFlagsController = this; - post.deletePost().then((function() { + post.deletePost().then(function() { adminFlagsController.removeObject(post); - }), function() { + }, function() { bootbox.alert(I18n.t("admin.flags.error")); }); },