Add ui_report shim.

This commit is contained in:
Steve Howell
2017-03-18 13:17:41 -07:00
committed by Tim Abbott
parent c67aebf633
commit b98cd55ddb
12 changed files with 80 additions and 74 deletions

View File

@@ -152,7 +152,7 @@ function report_error(msg, stack, opts) {
// invoked). In any case, it will pretty clear that
// something is wrong with the page and the user will
// probably try to reload anyway.
ui.report_message("Oops. It seems something has gone wrong. " +
ui_report.message("Oops. It seems something has gone wrong. " +
"The error has been reported to the fine " +
"folks at Zulip, but, in the mean time, " +
"please try reloading the page.",
@@ -161,7 +161,7 @@ function report_error(msg, stack, opts) {
},
error: function () {
if (opts.show_ui_msg && ui !== undefined) {
ui.report_message("Oops. It seems something has gone wrong. " +
ui_report.message("Oops. It seems something has gone wrong. " +
"Please try reloading the page.",
$("#home-error"), "alert-error");
}