From 48a0c65bd614aa23f5082c4aa7f94ef4a832b77f Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 9 Oct 2012 14:18:55 -0400 Subject: [PATCH] Clear the class/instance values when replying to a huddle message. (imported from commit 8953c6a8911503b4d938588e94d2323773f21c6c) --- zephyr/static/js/zephyr.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/zephyr/static/js/zephyr.js b/zephyr/static/js/zephyr.js index d3bcc953d3..28e6a9d372 100644 --- a/zephyr/static/js/zephyr.js +++ b/zephyr/static/js/zephyr.js @@ -110,8 +110,13 @@ function get_huddle_recipient_names(zephyr) { function respond_to_zephyr(reply_type) { var zephyr, tabname; zephyr = zephyr_dict[selected_zephyr_id]; - $("#class").val(zephyr.display_recipient); - $("#instance").val(zephyr.instance); + if (zephyr.type === "class") { + $("#class").val(zephyr.display_recipient); + $("#instance").val(zephyr.instance); + } else { + $("#class").val(""); + $("#instance").val(""); + } $("#huddle_recipient").val(zephyr.reply_to); if (reply_type === "personal" && zephyr.type === "huddle") { // reply_to for huddle messages is the whole huddle, so for