alert_popup: Fix stack trace not removed on clicking x.

This commit is contained in:
Aman Agrawal
2025-05-27 11:22:18 +05:30
committed by Tim Abbott
parent 2912d48579
commit 4ecadd5a1d

View File

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