Merge pull request #742 from ZogStriP/fix-notify-users-that-their-actions-has-been-throttled

FIX: Where is a user notified that one of their actions has been throttled for the day?
This commit is contained in:
Jeff Atwood 2013-04-20 03:03:42 -07:00
commit 79fa01a8c4
1 changed files with 3 additions and 2 deletions

View File

@ -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);
});
},