From 438e412772d6761b85dd510bc9bdb3f2016ad702 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Fri, 14 Jun 2013 16:02:45 -0400 Subject: [PATCH] Hide more things when you "close" the compose box. This change backs off from the always-open-compose-box paradigm, so that when a user "closes" the compose box, they can no longer type text, attach files, etc., and instead, they have buttons to reopen the compose box. (This change does not affect the feature that when you're in reply mode, the compose box stays open.) (imported from commit 32305d5b35f457a83f126a2265defdd98e885a2b) --- templates/zephyr/compose.html | 19 +++++++++++++++++++ zephyr/static/js/compose.js | 4 ++++ zephyr/static/styles/zephyr.css | 11 ++++++++++- 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/templates/zephyr/compose.html b/templates/zephyr/compose.html index c788655ed4..f159447070 100644 --- a/templates/zephyr/compose.html +++ b/templates/zephyr/compose.html @@ -1,5 +1,24 @@
+
+

+ Click on any message to reply to a conversation. Or start a new one: +

+
+ + + + + + +
+
diff --git a/zephyr/static/js/compose.js b/zephyr/static/js/compose.js index 24ccd18684..d1b81cfae5 100644 --- a/zephyr/static/js/compose.js +++ b/zephyr/static/js/compose.js @@ -166,6 +166,8 @@ exports.start = function (msg_type, opts) { } $("#compose_close").show(); + $("#compose_controls").hide(); + $('.message_comp').show(); var default_opts = { message_type: msg_type, @@ -418,6 +420,8 @@ exports.hide = function () { $(".new_message_textarea").css("min-height", ""); notifications_bar.enable(); exports.unfade_messages(true); + $('.message_comp').hide(); + $("#compose_controls").show(); }; exports.clear = function () { diff --git a/zephyr/static/styles/zephyr.css b/zephyr/static/styles/zephyr.css index 3cb38dcd41..f3efc6236b 100644 --- a/zephyr/static/styles/zephyr.css +++ b/zephyr/static/styles/zephyr.css @@ -199,7 +199,7 @@ a:hover code { } .new_message_button { - padding-top: 1em; + padding: 20px; } .compose_private_button, .compose_stream_button { @@ -371,6 +371,11 @@ ul.filters li.out_of_home_view { } .message_comp { + display: none; +} + +.message_comp, +#compose_controls { border: 1px solid #EEE; background-color: white; padding: 8px 20px 8px 10px; @@ -379,6 +384,10 @@ ul.filters li.out_of_home_view { border-top-right-radius: 6px; } +#compose_buttons { + text-align: center; +} + td.pointer { vertical-align: top; padding-top: 10px;