From fa112adcb7fb0db06be07f6d2d73358e17a49050 Mon Sep 17 00:00:00 2001 From: Daniil Fadeev Date: Mon, 15 May 2023 16:44:03 +0400 Subject: [PATCH] send_late: Change the class `send_later_options` to an id. It will be easier to locate the send later options in different code paths with the id. --- web/src/scheduled_messages.js | 4 +--- web/templates/send_later_modal_options.hbs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/web/src/scheduled_messages.js b/web/src/scheduled_messages.js index 0f7ff3e881..b6d51d6319 100644 --- a/web/src/scheduled_messages.js +++ b/web/src/scheduled_messages.js @@ -346,8 +346,6 @@ export function update_send_later_options() { const now = new Date(); if (should_update_send_later_options(now)) { const filtered_send_opts = get_filtered_send_opts(now); - $("#send_later_modal .send_later_options").replaceWith( - render_send_later_modal_options(filtered_send_opts), - ); + $("#send_later_options").replaceWith(render_send_later_modal_options(filtered_send_opts)); } } diff --git a/web/templates/send_later_modal_options.hbs b/web/templates/send_later_modal_options.hbs index 6aea2026fd..d155a34324 100644 --- a/web/templates/send_later_modal_options.hbs +++ b/web/templates/send_later_modal_options.hbs @@ -1,4 +1,4 @@ -
+