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: Remove unused module.

Anders Kaseorg194802ab7cd3
diff --git a/tools/test-js-with-node b/tools/test-js-with-node
index ebeb4b4d4b8..918394c0f6d 100755
--- a/tools/test-js-with-node
+++ b/tools/test-js-with-node
@@ -51,7 +51,6 @@ EXEMPT_FILES = make_set(
"web/src/add_stream_options_popover.ts",
"web/src/add_subscribers_pill.ts",
"web/src/admin.ts",
- "web/src/alert_popup.ts",
"web/src/alert_words_ui.ts",
"web/src/animate.ts",
"web/src/assets.d.ts",
diff --git a/web/src/alert_popup.ts b/web/src/alert_popup.ts
deleted file mode 100644
index 153bf1205bf..00000000000
--- a/web/src/alert_popup.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import {$} from "jquery";
-
-// this will hide the alerts that you click "x" on.
-$("body").on("click", ".alert-box .exit", function () {
- const $stack_trace = $(this).closest(".stacktrace");
- $stack_trace.addClass("fade-out");
- setTimeout(() => {
- $stack_trace.removeClass("fade-out show");
- }, 300);
-});