Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

popovers: Add comment to clarify hideAll is a tippy function.

Aman Agrawal13b478f81f1f
diff --git a/static/js/popovers.js b/static/js/popovers.js
index 191c728bad4..e7c08518b1e 100644
--- a/static/js/popovers.js
+++ b/static/js/popovers.js
@@ -1134,6 +1134,7 @@ export function any_active() {
export function hide_all_except_sidebars(opts) {
$(".has_popover").removeClass("has_popover has_actions_popover has_emoji_popover");
if (!opts || !opts.not_hide_tippy_instances) {
+ // hideAll hides all tippy instances (tooltips and popovers).
hideAll();
} else if (opts.exclude_tippy_instance) {
hideAll({exclude: opts.exclude_tippy_instance});