revert Error message back as it is for the modal title

This commit is contained in:
alisan617
2016-12-05 12:31:10 -05:00
committed by Brian Jacobel
parent 03d93a2e89
commit ee3a58edea
5 changed files with 7 additions and 0 deletions

View File

@@ -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.')
);
};

View File

@@ -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.')
);
});

View File

@@ -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.')
);
};

View File

@@ -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.')
);
}

View File

@@ -114,6 +114,7 @@
},
error: function() {
return DiscussionUtil.discussionAlert(
gettext('Error'),
gettext('This comment could not be deleted. Refresh the page and try again.')
);
}