From c6d9029dfc355455b3ee84e7919b41f4be32c0b7 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Tue, 21 Dec 2021 19:10:21 +0000 Subject: [PATCH] dom: Remove outer subscriptions div. --- static/js/stream_settings_ui.js | 4 ++-- templates/zerver/app/index.html | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/static/js/stream_settings_ui.js b/static/js/stream_settings_ui.js index 7b3a3ea4f7..4d64fd98c2 100644 --- a/static/js/stream_settings_ui.js +++ b/static/js/stream_settings_ui.js @@ -256,7 +256,7 @@ export function add_sub_to_table(sub) { } const settings_html = render_stream_settings(sub); - ui.get_content_element($(".subscriptions .settings")).append($(settings_html)); + ui.get_content_element($("#manage_streams_container .settings")).append($(settings_html)); if (stream_create.get_name() === sub.name) { // This `stream_create.get_name()` check tells us whether the @@ -1086,7 +1086,7 @@ export function initialize() { open_create_stream(); }); - $(".subscriptions").on("click", "#stream_creation_form [data-dismiss]", (e) => { + $("#manage_streams_container").on("click", "#stream_creation_form [data-dismiss]", (e) => { e.preventDefault(); // we want to make sure that the click is not just a simulated // click; this fixes an issue where hitting "Enter" would diff --git a/templates/zerver/app/index.html b/templates/zerver/app/index.html index 32b2494dc9..45a0bd3535 100644 --- a/templates/zerver/app/index.html +++ b/templates/zerver/app/index.html @@ -75,10 +75,7 @@ -
-
-
-
+