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.

settings: Remove unreachable click handler for settings.

Pratik Chanda83d67ddb6ace
diff --git a/web/src/settings.ts b/web/src/settings.ts
index db1ca4061fd..c779ac5a8a4 100644
--- a/web/src/settings.ts
+++ b/web/src/settings.ts
@@ -10,7 +10,6 @@ import * as common from "./common.ts";
import * as flatpickr from "./flatpickr.ts";
import {$t} from "./i18n.ts";
import * as information_density from "./information_density.ts";
-import * as modals from "./modals.ts";
import * as overlays from "./overlays.ts";
import {page_params} from "./page_params.ts";
import * as people from "./people.ts";
@@ -195,21 +194,4 @@ export function initialize(): void {
settings_data.user_can_invite_users_by_email(),
});
$("#settings_overlay_container").append($(rendered_settings_overlay));
-
- $("#settings_overlay_container").on("click", (e) => {
- if (!modals.any_active()) {
- return;
- }
- if ($(e.target).closest(".micromodal").length > 0) {
- return;
- }
- e.preventDefault();
- e.stopPropagation();
- // Whenever opening a modal(over settings overlay) in an event handler
- // attached to a click event, make sure to stop the propagation of the
- // event to the parent container otherwise the modal will not open. This
- // is so because this event handler will get fired on any click in settings
- // overlay and subsequently close any open modal.
- modals.close_active();
- });
}