revert Error message back as it is for the modal title
This commit is contained in:
@@ -184,6 +184,7 @@
|
||||
if (!params.error) {
|
||||
params.error = function() {
|
||||
self.discussionAlert(
|
||||
gettext('Error'),
|
||||
gettext('Your request could not be processed. Refresh the page and try again.')
|
||||
);
|
||||
};
|
||||
|
||||
@@ -181,6 +181,7 @@
|
||||
this.loadDiscussions(this.$el, function() {
|
||||
self.hideDiscussion();
|
||||
DiscussionUtil.discussionAlert(
|
||||
gettext('Error'),
|
||||
gettext('This discussion could not be loaded. Refresh the page and try again.')
|
||||
);
|
||||
});
|
||||
|
||||
@@ -309,6 +309,7 @@
|
||||
error = function() {
|
||||
self.renderThreads();
|
||||
DiscussionUtil.discussionAlert(
|
||||
gettext('Error'),
|
||||
gettext('Additional posts could not be loaded. Refresh the page and try again.')
|
||||
);
|
||||
};
|
||||
|
||||
@@ -261,14 +261,17 @@
|
||||
}
|
||||
if (xhr.status === 404) {
|
||||
DiscussionUtil.discussionAlert(
|
||||
gettext('Error'),
|
||||
gettext('The post you selected has been deleted.')
|
||||
);
|
||||
} else if (firstLoad) {
|
||||
DiscussionUtil.discussionAlert(
|
||||
gettext('Error'),
|
||||
gettext('Responses could not be loaded. Refresh the page and try again.')
|
||||
);
|
||||
} else {
|
||||
DiscussionUtil.discussionAlert(
|
||||
gettext('Error'),
|
||||
gettext('Additional responses could not be loaded. Refresh the page and try again.')
|
||||
);
|
||||
}
|
||||
|
||||
@@ -114,6 +114,7 @@
|
||||
},
|
||||
error: function() {
|
||||
return DiscussionUtil.discussionAlert(
|
||||
gettext('Error'),
|
||||
gettext('This comment could not be deleted. Refresh the page and try again.')
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user