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.

compose_box: Move send-control-button Tippy logic to compose file.

Karl Stolleyfd8711023d0d
diff --git a/web/src/compose_tooltips.js b/web/src/compose_tooltips.js
index 4d84e18c822..08b990127de 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 3d4f96e8bf2..7d8c5e58f95 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({