From 61ee8b19210e6bf054034f6cdca5e1a4519f0396 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 12 Mar 2013 16:53:54 -0400 Subject: [PATCH] Unfade messages after you manually edit the recipient. It's pretty confusing if this doesn't change. In some other world we could update the fade, but since we're currently only fading on reply, I think it would be weird to update the fade when you're picking a new recipient. (imported from commit 8f77419d443d578068b57f847354ac6da7632ee2) --- zephyr/static/js/hotkey.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zephyr/static/js/hotkey.js b/zephyr/static/js/hotkey.js index 1c9f15876e..1c26a5c85b 100644 --- a/zephyr/static/js/hotkey.js +++ b/zephyr/static/js/hotkey.js @@ -76,6 +76,14 @@ function process_hotkey(e) { return true; } } + // If we just typed a character to change the recipient in the + // compose box, this means that we're no longer replying to + // whatever the original message was, and we should unfade. + if (compose.composing() && + $("#stream:focus,#subject:focus,#private_message_recipient:focus").length > 0) { + compose.unfade_messages(true); + return false; + } // Let the browser handle the key normally. return false; }