From 949dcbfbc7ba6dfddc86ee8c671a114614b7ccda Mon Sep 17 00:00:00 2001 From: Reid Barton Date: Wed, 16 Jan 2013 15:52:53 -0500 Subject: [PATCH] Fix inverted logic for autofocus field in set_mode This meant that the "New stream message" button would focus the wrong text field. (imported from commit 5e34f0fb936b94b8c1515e915e8059d19feba45e) --- zephyr/static/js/compose.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr/static/js/compose.js b/zephyr/static/js/compose.js index 7f6ab227ca..1b6b5eadb2 100644 --- a/zephyr/static/js/compose.js +++ b/zephyr/static/js/compose.js @@ -207,7 +207,7 @@ exports.set_mode = function (mode) { show('private', $("#private_message_recipient")); is_composing_message = "private"; } else { - show('stream', $(lurk_stream !== undefined ? "#stream" : "#subject")); + show('stream', $(lurk_stream !== undefined ? "#subject" : "#stream")); is_composing_message = "stream"; } };