mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 10:26:28 +00:00
compose_send_menu_popover: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
f3cb557fb2
commit
4e852f1039
@@ -130,13 +130,13 @@ export function do_schedule_message(send_at_time) {
|
||||
}
|
||||
|
||||
function get_send_later_menu_items() {
|
||||
const $current_schedule_popover_elem = $("[data-tippy-root] #send_later_popover");
|
||||
if ($current_schedule_popover_elem.length === 0) {
|
||||
const $send_later_options = $("#send_later_options");
|
||||
if ($send_later_options.length === 0) {
|
||||
blueslip.error("Trying to get menu items when schedule popover is closed.");
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return $current_schedule_popover_elem.find("li:not(.divider):visible a");
|
||||
return $send_later_options.find(".send_later_option");
|
||||
}
|
||||
|
||||
function focus_first_send_later_popover_item() {
|
||||
|
||||
Reference in New Issue
Block a user