From fd8711023d0dc2486156051c5894bf824cfc3f2f Mon Sep 17 00:00:00 2001 From: Karl Stolley Date: Tue, 14 Nov 2023 13:36:01 -0600 Subject: [PATCH] compose_box: Move send-control-button Tippy logic to compose file. --- web/src/compose_tooltips.js | 7 +++++++ web/src/tippyjs.js | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/src/compose_tooltips.js b/web/src/compose_tooltips.js index 4d84e18c82..08b990127d 100644 --- a/web/src/compose_tooltips.js +++ b/web/src/compose_tooltips.js @@ -56,6 +56,13 @@ export function initialize() { appendTo: () => document.body, }); + delegate("body", { + target: ".send-control-button", + delay: LONG_HOVER_DELAY, + placement: "top", + appendTo: () => document.body, + }); + delegate("body", { target: "#compose-send-button", delay: EXTRA_LONG_HOVER_DELAY, diff --git a/web/src/tippyjs.js b/web/src/tippyjs.js index 3d4f96e8bf..7d8c5e58f9 100644 --- a/web/src/tippyjs.js +++ b/web/src/tippyjs.js @@ -445,13 +445,6 @@ export function initialize() { appendTo: () => document.body, }); - delegate("body", { - target: ".send-control-button", - delay: LONG_HOVER_DELAY, - placement: "top", - appendTo: () => document.body, - }); - delegate("body", { target: ["#stream_creation_form .add_subscribers_disabled"], content: $t({