Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
copy_message: Use tippy for tooltip.
Aman Agrawald5e28eb3e223
diff --git a/static/js/ui_init.js b/static/js/ui_init.jsindex d85c93193f2..1a27585cbdc 100644--- a/static/js/ui_init.js+++ b/static/js/ui_init.js@@ -325,8 +325,6 @@ export function initialize_kitchen_sink_stuff() {$('.message_failed i[data-toggle="tooltip"]').tooltip();- $('.copy_message[data-toggle="tooltip"]').tooltip();-$("body").on("mouseover", ".message_edit_content", function () {$(this).closest(".message_row").find(".copy_message").show();});@@ -337,11 +335,6 @@ export function initialize_kitchen_sink_stuff() {$("body").on("mouseenter", ".copy_message", function () {$(this).show();- $(this).tooltip("show");- });-- $("body").on("mouseleave", ".copy_message", function () {- $(this).tooltip("hide");});if (!page_params.realm_allow_message_editing) {diff --git a/static/templates/copy_message_button.hbs b/static/templates/copy_message_button.hbsindex 1d1f9a373c5..76d95d2ed12 100644--- a/static/templates/copy_message_button.hbs+++ b/static/templates/copy_message_button.hbs@@ -1,3 +1,3 @@-<button class="btn pull-right copy_button_base copy_message" data-toggle="tooltip" title="{{t "Copy and close" }}" aria-label="{{t "Copy and close" }}" data-clipboard-target="#message_edit_content_{{message_id}}">+<button class="btn pull-right copy_button_base copy_message tippy-zulip-tooltip" data-tippy-content="{{t "Copy and close" }}" aria-label="{{t "Copy and close" }}" data-clipboard-target="#message_edit_content_{{message_id}}">{{> copy_to_clipboard_svg }}</button>