Commit ee3a58ed by alisan617 Committed by Brian Jacobel

revert Error message back as it is for the modal title

parent 03d93a2e
......@@ -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.')
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment