zulip/static
Tim Abbott b67b9912c4 drafts: Fix hook for saving drafts.
Previously, the hook to save drafts when closing the compose box was a
focusout on #compose-textarea. This mostly worked, and was essentially
invisible to users (because the animation to notify you about saved
drafts was in the close_compose_ui widget that is hidden), but you'd
end up seeing the tooltip appear (in the wrong place) if you closed
the compose box immediately after sending a message with Tab+Enter.

The correct fix is for the drafts hook to be just before we start
clearing compose box state, inside hide_box.

This was difficult to catch in a development environment, since one
doesn't use that flow with "Enter sends" enabled.
2021-05-12 12:53:58 -07:00
..
assets zulip-icon: Add zulip-icon as classPrefix for icon. 2021-04-29 09:02:25 -07:00
audio notificaiton_sounds: Add some atonal sounds created by @stwime. 2021-02-05 12:28:20 -08:00
generated
html templates: Mark all void tags as self-closing. 2021-04-21 09:49:34 -07:00
images doc: Fix configurations for images in the doc of newrelic. 2021-05-10 17:50:32 -07:00
js drafts: Fix hook for saving drafts. 2021-05-12 12:53:58 -07:00
shared docs: Fix capitalization mistakes. 2021-05-10 09:57:26 -07:00
styles portico: Make apps selector easier to see. 2021-05-12 11:58:14 -07:00
templates recent topics: Use tippy tooltip instead of HTML title. 2021-05-12 09:30:24 -07:00
third Revert "markdown: Add support to shorten GitHub links." 2021-04-02 15:52:34 -07:00
.gitignore dependencies: Replace moment.js with date-fns. 2021-02-05 11:04:32 -08:00