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.
This commit is contained in:
Daniil Fadeev 2023-05-15 16:44:03 +04:00 committed by Tim Abbott
parent e64e5f2413
commit fa112adcb7
2 changed files with 2 additions and 4 deletions

View File

@ -346,8 +346,6 @@ export function update_send_later_options() {
const now = new Date(); const now = new Date();
if (should_update_send_later_options(now)) { if (should_update_send_later_options(now)) {
const filtered_send_opts = get_filtered_send_opts(now); const filtered_send_opts = get_filtered_send_opts(now);
$("#send_later_modal .send_later_options").replaceWith( $("#send_later_options").replaceWith(render_send_later_modal_options(filtered_send_opts));
render_send_later_modal_options(filtered_send_opts),
);
} }
} }

View File

@ -1,4 +1,4 @@
<div class="send_later_options"> <div id="send_later_options">
<ul class="nav nav-list"> <ul class="nav nav-list">
{{#if possible_send_later_today}} {{#if possible_send_later_today}}
{{#each possible_send_later_today}} {{#each possible_send_later_today}}