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 @@ ...@@ -184,6 +184,7 @@
if (!params.error) { if (!params.error) {
params.error = function() { params.error = function() {
self.discussionAlert( self.discussionAlert(
gettext('Error'),
gettext('Your request could not be processed. Refresh the page and try again.') gettext('Your request could not be processed. Refresh the page and try again.')
); );
}; };
......
...@@ -181,6 +181,7 @@ ...@@ -181,6 +181,7 @@
this.loadDiscussions(this.$el, function() { this.loadDiscussions(this.$el, function() {
self.hideDiscussion(); self.hideDiscussion();
DiscussionUtil.discussionAlert( DiscussionUtil.discussionAlert(
gettext('Error'),
gettext('This discussion could not be loaded. Refresh the page and try again.') gettext('This discussion could not be loaded. Refresh the page and try again.')
); );
}); });
......
...@@ -309,6 +309,7 @@ ...@@ -309,6 +309,7 @@
error = function() { error = function() {
self.renderThreads(); self.renderThreads();
DiscussionUtil.discussionAlert( DiscussionUtil.discussionAlert(
gettext('Error'),
gettext('Additional posts could not be loaded. Refresh the page and try again.') gettext('Additional posts could not be loaded. Refresh the page and try again.')
); );
}; };
......
...@@ -261,14 +261,17 @@ ...@@ -261,14 +261,17 @@
} }
if (xhr.status === 404) { if (xhr.status === 404) {
DiscussionUtil.discussionAlert( DiscussionUtil.discussionAlert(
gettext('Error'),
gettext('The post you selected has been deleted.') gettext('The post you selected has been deleted.')
); );
} else if (firstLoad) { } else if (firstLoad) {
DiscussionUtil.discussionAlert( DiscussionUtil.discussionAlert(
gettext('Error'),
gettext('Responses could not be loaded. Refresh the page and try again.') gettext('Responses could not be loaded. Refresh the page and try again.')
); );
} else { } else {
DiscussionUtil.discussionAlert( DiscussionUtil.discussionAlert(
gettext('Error'),
gettext('Additional responses could not be loaded. Refresh the page and try again.') gettext('Additional responses could not be loaded. Refresh the page and try again.')
); );
} }
......
...@@ -114,6 +114,7 @@ ...@@ -114,6 +114,7 @@
}, },
error: function() { error: function() {
return DiscussionUtil.discussionAlert( return DiscussionUtil.discussionAlert(
gettext('Error'),
gettext('This comment could not be deleted. Refresh the page and try again.') 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