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.

send_later: Pick time from 'Custom time' link.

Karl Stolley8180cc786f2f
diff --git a/web/src/popover_menus.js b/web/src/popover_menus.js
index 133ba80dd03..3652bca6477 100644
--- a/web/src/popover_menus.js
+++ b/web/src/popover_menus.js
@@ -910,9 +910,9 @@ export function initialize() {
e.target.click();
}
});
- $send_later_modal.one("click", ".send_later_date_input", (e) => {
+ $send_later_modal.on("click", ".send_later_custom", (e) => {
flatpickr.show_flatpickr(
- $(".send_later_date_input")[0],
+ $(".send_later_custom")[0],
update_scheduled_date_from_modal,
new Date(),
);
diff --git a/web/templates/send_later_modal.hbs b/web/templates/send_later_modal.hbs
index a0421b455a9..355a8e55d90 100644
--- a/web/templates/send_later_modal.hbs
+++ b/web/templates/send_later_modal.hbs
@@ -26,6 +26,9 @@
<a id="{{@key}}" class="send_later_tomorrow" tabindex="0">{{this.text}}</a>
</li>
{{/each}}
+ <li>
+ <a class="send_later_custom" tabindex="0">{{t 'Custom time'}}</a>
+ </li>
</ul>
</div>
</main>