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.

stream_popover: Move init call to ui_init.

Aman Agrawalbdd991dc6723
diff --git a/web/src/click_handlers.js b/web/src/click_handlers.js
index 3d36710de60..7bff02ff536 100644
--- a/web/src/click_handlers.js
+++ b/web/src/click_handlers.js
@@ -640,7 +640,6 @@ export function initialize() {
}
user_profile.register_click_handlers();
- stream_popover.register_click_handlers();
$("body").on("click", ".logout_button", () => {
$("#logout_form").trigger("submit");
diff --git a/web/src/stream_popover.js b/web/src/stream_popover.js
index 35b272865bb..5ffde4d2870 100644
--- a/web/src/stream_popover.js
+++ b/web/src/stream_popover.js
@@ -479,7 +479,7 @@ export function build_move_topic_to_stream_popover(
});
}
-export function register_click_handlers() {
+export function initialize() {
$("#stream_filters").on("click", ".stream-sidebar-menu-icon", (e) => {
const elt = e.currentTarget;
const $stream_li = $(elt).parents("li");
diff --git a/web/src/ui_init.js b/web/src/ui_init.js
index 543f6aec1cb..51f8687bd45 100644
--- a/web/src/ui_init.js
+++ b/web/src/ui_init.js
@@ -102,6 +102,7 @@ import * as stream_edit from "./stream_edit";
import * as stream_edit_subscribers from "./stream_edit_subscribers";
import * as stream_list from "./stream_list";
import * as stream_list_sort from "./stream_list_sort";
+import * as stream_popover from "./stream_popover";
import * as stream_settings_ui from "./stream_settings_ui";
import * as sub_store from "./sub_store";
import * as timerender from "./timerender";
@@ -606,6 +607,7 @@ export function initialize_everything() {
spoilers.initialize();
lightbox.initialize();
sidebar_ui.initialize();
+ stream_popover.initialize();
click_handlers.initialize();
scheduled_messages_overlay_ui.initialize();
copy_and_paste.initialize();