popovers: Rename playground links popover hiding function.

This commit is contained in:
Daniil Fadeev 2023-09-15 17:02:22 +04:00 committed by Tim Abbott
parent 1782fb6866
commit d27448dcec
2 changed files with 3 additions and 3 deletions

View File

@ -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();
});
}

View File

@ -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) {