dom: Remove outer subscriptions div.

This commit is contained in:
Steve Howell
2021-12-21 19:10:21 +00:00
committed by Tim Abbott
parent 7ff89e4cae
commit c6d9029dfc
2 changed files with 3 additions and 6 deletions

View File

@@ -256,7 +256,7 @@ export function add_sub_to_table(sub) {
} }
const settings_html = render_stream_settings(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) { if (stream_create.get_name() === sub.name) {
// This `stream_create.get_name()` check tells us whether the // This `stream_create.get_name()` check tells us whether the
@@ -1086,7 +1086,7 @@ export function initialize() {
open_create_stream(); 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(); e.preventDefault();
// we want to make sure that the click is not just a simulated // we want to make sure that the click is not just a simulated
// click; this fixes an issue where hitting "Enter" would // click; this fixes an issue where hitting "Enter" would

View File

@@ -75,10 +75,7 @@
</div> </div>
</div> </div>
<div class="subscriptions"> <div id="manage_streams_container"></div>
<div id="manage_streams_container">
</div>
</div>
<div id="drafts_table"></div> <div id="drafts_table"></div>
<div id="settings_overlay_container" class="overlay" data-overlay="settings" aria-hidden="true"> <div id="settings_overlay_container" class="overlay" data-overlay="settings" aria-hidden="true">
</div> </div>