Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

alert_popup: Fix stack trace not removed on clicking `x`.

Aman Agrawal4ecadd5a1d54
diff --git a/web/src/alert_popup.ts b/web/src/alert_popup.ts
index 81f12139cba..e13b052ae99 100644
--- a/web/src/alert_popup.ts
+++ b/web/src/alert_popup.ts
@@ -2,10 +2,10 @@ import $ from "jquery";
// this will hide the alerts that you click "x" on.
$("body").on("click", ".alert-box .exit", function () {
- const $alert = $(this).parent("div");
- $alert.addClass("fade-out");
+ const $stack_trace = $(this).closest(".stacktrace");
+ $stack_trace.addClass("fade-out");
setTimeout(() => {
- $alert.removeClass("fade-out show");
+ $stack_trace.removeClass("fade-out show");
}, 300);
});