mirror of https://github.com/zulip/zulip.git
When closing the compose box, hide it first for perceived speed
(imported from commit 598585365141681a5573ad4fe9905be34ac92dd6)
This commit is contained in:
parent
22d0ee55f6
commit
56fb3dd877
|
@ -246,10 +246,10 @@ function abort_xhr () {
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.cancel = function () {
|
exports.cancel = function () {
|
||||||
|
hide_box();
|
||||||
$("#compose_close").hide();
|
$("#compose_close").hide();
|
||||||
clear_box();
|
clear_box();
|
||||||
notifications.clear_compose_notifications();
|
notifications.clear_compose_notifications();
|
||||||
hide_box();
|
|
||||||
abort_xhr();
|
abort_xhr();
|
||||||
is_composing_message = false;
|
is_composing_message = false;
|
||||||
if (message_snapshot !== undefined) {
|
if (message_snapshot !== undefined) {
|
||||||
|
|
Loading…
Reference in New Issue