From 71df94369bfb2518c2ed168f6baf413546201e27 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9gis=20Hanol?= <regis@hanol.fr>
Date: Sat, 20 Apr 2013 01:43:32 +0200
Subject: [PATCH] FIX: Where is a user notified that one of their actions has
 been throttled for the day?

---
 app/assets/javascripts/discourse/models/action_summary.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/app/assets/javascripts/discourse/models/action_summary.js b/app/assets/javascripts/discourse/models/action_summary.js
index b85d34f55..953ba4f6c 100644
--- a/app/assets/javascripts/discourse/models/action_summary.js
+++ b/app/assets/javascripts/discourse/models/action_summary.js
@@ -57,7 +57,7 @@ Discourse.ActionSummary = Discourse.Model.extend({
 
     // Create our post action
     var actionSummary = this;
-    return Discourse.ajax({
+    Discourse.ajax({
       url: Discourse.getURL("/post_actions"),
       type: 'POST',
       data: {
@@ -67,7 +67,8 @@ Discourse.ActionSummary = Discourse.Model.extend({
       }
     }).then(null, function (error) {
       actionSummary.removeAction();
-      return $.parseJSON(error.responseText).errors;
+      var message = $.parseJSON(error.responseText).errors;
+      bootbox.alert(message);
     });
   },