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:
commit
79fa01a8c4
|
@ -57,7 +57,7 @@ Discourse.ActionSummary = Discourse.Model.extend({
|
||||||
|
|
||||||
// Create our post action
|
// Create our post action
|
||||||
var actionSummary = this;
|
var actionSummary = this;
|
||||||
return Discourse.ajax({
|
Discourse.ajax({
|
||||||
url: Discourse.getURL("/post_actions"),
|
url: Discourse.getURL("/post_actions"),
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: {
|
data: {
|
||||||
|
@ -67,7 +67,8 @@ Discourse.ActionSummary = Discourse.Model.extend({
|
||||||
}
|
}
|
||||||
}).then(null, function (error) {
|
}).then(null, function (error) {
|
||||||
actionSummary.removeAction();
|
actionSummary.removeAction();
|
||||||
return $.parseJSON(error.responseText).errors;
|
var message = $.parseJSON(error.responseText).errors;
|
||||||
|
bootbox.alert(message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue