From 084608ebdafa254b1f5c632869d01bfa8850268d Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Mon, 15 Oct 2012 15:45:15 -0400 Subject: [PATCH] Clear compose box when replying to a message (imported from commit 1fe21a6d1a5f6f946e14583dc81ede961dbf57c9) --- tools/jslint/check-all.js | 2 +- zephyr/static/js/zephyr.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/jslint/check-all.js b/tools/jslint/check-all.js index 3b3fe96712..668743bffc 100644 --- a/tools/jslint/check-all.js +++ b/tools/jslint/check-all.js @@ -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' diff --git a/zephyr/static/js/zephyr.js b/zephyr/static/js/zephyr.js index 77f43201d4..ff825e5fa4 100644 --- a/zephyr/static/js/zephyr.js +++ b/zephyr/static/js/zephyr.js @@ -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);