FIX: Where is a user notified that one of their actions has been throttled for the day?

This commit is contained in:
Régis Hanol 2013-04-20 01:43:32 +02:00
parent b644509c28
commit 71df94369b

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