import $ from "jquery";

export function initialize(): void {
    // this will hide the alerts that you click "x" on.
    $("body").on("click", ".alert-box > div .exit", function () {
        const $alert = $(this).closest(".alert-box > div");
        $alert.addClass("fade-out");
        setTimeout(() => {
            $alert.removeClass("fade-out show");
        }, 300);
    });

    $(".alert-box").on("click", ".stackframe .expand", function () {
        $(this).parent().siblings(".code-context").toggle("fast");
    });
}

import $ from "jquery";

export function initialize(): void {
    // this will hide the alerts that you click "x" on.
    $("body").on("click", ".alert-box > div .exit", function () {
        const $alert = $(this).closest(".alert-box > div");
        $alert.addClass("fade-out");
        setTimeout(() => {
            $alert.removeClass("fade-out show");
        }, 300);
    });

    $(".alert-box").on("click", ".stackframe", function () {
        $(this).siblings(".code-context").toggle("fast");
    });
}

Enlarge click target for expanding rows.
blueslip_stacktrace: Enlarge click target for expanding rows.

Signed-off-by: Anders Kaseorg <dfdb7392591db597bc41cf266a9c3bc12a2706e5@zulip.com>
