Clear compose box when replying to a message

(imported from commit 1fe21a6d1a5f6f946e14583dc81ede961dbf57c9)
This commit is contained in:
Zev Benjamin 2012-10-15 15:45:15 -04:00
parent 8f3aea5cbf
commit 084608ebda
2 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,7 @@ var globals =
+ ' initial_pointer email stream_list people_list have_initial_messages'
// compose.js
+ ' show_compose hide_compose toggle_compose compose_button'
+ ' show_compose hide_compose toggle_compose clear_compose_box compose_button'
+ ' composing_message compose_stream_name validate_message'
+ ' status_classes'

View File

@ -127,6 +127,7 @@ function get_huddle_recipient_names(message) {
function respond_to_message(reply_type) {
var message, tabname;
message = message_dict[selected_message_id];
clear_compose_box();
if (message.type === "stream") {
$("#stream").val(message.display_recipient);
$("#subject").val(message.subject);