scheduled_message: Use specific name for `message-info-box` selector.

This commit is contained in:
Aman Agrawal 2024-09-30 04:33:19 +00:00 committed by Tim Abbott
parent 4a72801091
commit d2561b778a
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ export const keyboard_handling_context = {
items_container_selector: "scheduled-messages-container",
items_list_selector: "scheduled-messages-list",
row_item_selector: "scheduled-message-row",
box_item_selector: "overlay-message-info-box",
box_item_selector: "scheduled-message-info-box",
id_attribute_name: "data-scheduled-message-id",
};
@ -148,7 +148,7 @@ export function initialize() {
e.preventDefault();
});
$("body").on("focus", ".overlay-message-info-box", (e) => {
$("body").on("focus", ".scheduled-message-info-box", (e) => {
messages_overlay_ui.activate_element(e.target, keyboard_handling_context);
});
}

View File

@ -1,6 +1,6 @@
{{#each scheduled_messages_data}}
<div class="scheduled-message-row overlay-message-row" data-scheduled-message-id="{{scheduled_message_id}}">
<div class="overlay-message-info-box" tabindex="0">
<div class="scheduled-message-info-box overlay-message-info-box" tabindex="0">
{{#if is_stream}}
<div class="message_header message_header_stream">
<div class="message-header-contents" style="background: {{recipient_bar_color}};">