Set huddle_recipient even when replying to class messages.

(imported from commit dc91d66d87fb1b4c70d7b1842b733282c80b3e4a)
This commit is contained in:
Tim Abbott 2012-10-09 09:39:30 -04:00
parent d510a62976
commit 67c08dfaf2
1 changed files with 5 additions and 2 deletions

View File

@ -117,11 +117,13 @@ function respond_to_zephyr() {
$("#class").val(zephyr.display_recipient); $("#class").val(zephyr.display_recipient);
$("#instance").val(zephyr.instance); $("#instance").val(zephyr.instance);
show_compose('class', $("#new_zephyr")); show_compose('class', $("#new_zephyr"));
$("#huddle_recipient").val(zephyr.sender);
break; break;
case 'huddle': case 'huddle':
$('#zephyr-type-tabs a[href="#personal-message"]').tab('show'); $('#zephyr-type-tabs a[href="#personal-message"]').tab('show');
prepare_huddle(zephyr.reply_to); show_compose('personal', $("#new_zephyr"));
$("#huddle_recipient").val(zephyr.reply_to);
break; break;
case 'personal': case 'personal':
@ -132,7 +134,8 @@ function respond_to_zephyr() {
if (recipient === email) { // that is, we sent the original message if (recipient === email) { // that is, we sent the original message
recipient = zephyr.sender_email; recipient = zephyr.sender_email;
} }
prepare_huddle(recipient); show_compose('personal', $("#new_zephyr"));
$("#huddle_recipient").val(recipient);
break; break;
} }
} }