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.

message_edit: Add hide event for clipboard tooltip after copy.

Aryan Shridhar4e8067aadc7d
diff --git a/static/js/click_handlers.js b/static/js/click_handlers.js
index 7570be85fd4..4e1358fda0e 100644
--- a/static/js/click_handlers.js
+++ b/static/js/click_handlers.js
@@ -329,6 +329,9 @@ exports.initialize = function () {
row.find(".alert-msg").text(i18n.t("Copied!"));
row.find(".alert-msg").css("display", "block");
row.find(".alert-msg").delay(1000).fadeOut(300);
+ if ($(".tooltip").is(":visible")) {
+ $(".tooltip").hide();
+ }
e.preventDefault();
e.stopPropagation();
});