mirror of https://github.com/zulip/zulip.git
popovers: Rename playground links popover hiding function.
This commit is contained in:
parent
1782fb6866
commit
d27448dcec
|
@ -38,7 +38,7 @@ function toggle_playground_links_popover(element, playground_info) {
|
|||
}
|
||||
}
|
||||
|
||||
export function hide_playground_links_popover() {
|
||||
export function hide() {
|
||||
if ($current_playground_links_popover_elem !== undefined) {
|
||||
$current_playground_links_popover_elem.popover("destroy");
|
||||
$current_playground_links_popover_elem = undefined;
|
||||
|
@ -78,7 +78,7 @@ function register_click_handlers() {
|
|||
);
|
||||
|
||||
$("body").on("click", ".popover_playground_link", (e) => {
|
||||
hide_playground_links_popover();
|
||||
hide();
|
||||
e.stopPropagation();
|
||||
});
|
||||
}
|
||||
|
|
|
@ -162,7 +162,7 @@ export function hide_all_except_sidebars(opts) {
|
|||
stream_popover.hide_stream_popover();
|
||||
user_group_popover.hide();
|
||||
user_card_popover.hide_all_user_card_popovers();
|
||||
playground_links_popover.hide_playground_links_popover();
|
||||
playground_links_popover.hide();
|
||||
|
||||
// look through all the popovers that have been added and removed.
|
||||
for (const $o of list_of_popovers) {
|
||||
|
|
Loading…
Reference in New Issue