Clear the class/instance values when replying to a huddle message.

(imported from commit 8953c6a8911503b4d938588e94d2323773f21c6c)
This commit is contained in:
Tim Abbott 2012-10-09 14:18:55 -04:00
parent d5c89ffe9d
commit 48a0c65bd6
1 changed files with 7 additions and 2 deletions

View File

@ -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];
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