From 56fb3dd8779e919adc4c94860b807ff87c9eb3f6 Mon Sep 17 00:00:00 2001 From: Jeff Arnold Date: Tue, 26 Nov 2013 18:14:02 -0500 Subject: [PATCH] When closing the compose box, hide it first for perceived speed (imported from commit 598585365141681a5573ad4fe9905be34ac92dd6) --- static/js/compose.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/compose.js b/static/js/compose.js index 882effd663..db92c85492 100644 --- a/static/js/compose.js +++ b/static/js/compose.js @@ -246,10 +246,10 @@ function abort_xhr () { } exports.cancel = function () { + hide_box(); $("#compose_close").hide(); clear_box(); notifications.clear_compose_notifications(); - hide_box(); abort_xhr(); is_composing_message = false; if (message_snapshot !== undefined) {