mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
Rename huddle recipient field to #huddle_recipient.
(imported from commit 8670f06679aa1554003aa2832dec3ed6d00ad1c3)
This commit is contained in:
parent
1f2c0faee4
commit
d510a62976
@ -55,7 +55,7 @@
|
||||
</tr>
|
||||
<tr id="personal-message">
|
||||
<td colspan="3" class="zephyr_newstyle_pm">
|
||||
Huddle with <input type="text" class="zephyr_recipient_box" name="recipient" id="recipient" value="" placeholder="one or more of your friends..." autocomplete="off"/>
|
||||
Huddle with <input type="text" class="zephyr_recipient_box" name="recipient" id="huddle_recipient" value="" placeholder="one or more of your friends..." autocomplete="off"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -25,7 +25,7 @@ function compose_button() {
|
||||
function toggle_compose() {
|
||||
if ($("#zephyr-type-tabs li.active").find("a[href=#class-message]").length !== 0) {
|
||||
// In class tab, switch to personals.
|
||||
show_compose('personal', $("#recipient"));
|
||||
show_compose('personal', $("#huddle_recipient"));
|
||||
} else {
|
||||
show_compose('class', $("#class"));
|
||||
}
|
||||
@ -52,7 +52,7 @@ function compose_message() {
|
||||
}
|
||||
|
||||
function compose_recipient() {
|
||||
return $.trim($("#recipient").val());
|
||||
return $.trim($("#huddle_recipient").val());
|
||||
}
|
||||
|
||||
function compose_huddle_message() {
|
||||
@ -138,7 +138,7 @@ function validate_class_message() {
|
||||
|
||||
function validate_huddle_message() {
|
||||
if (compose_recipient() === "") {
|
||||
compose_error("Please specify at least one recipient", $("#recipient"));
|
||||
compose_error("Please specify at least one recipient", $("#huddle_recipient"));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@ -89,7 +89,7 @@ function update_autocomplete() {
|
||||
source: instance_list,
|
||||
items: 2
|
||||
});
|
||||
$( "#recipient" ).typeahead({
|
||||
$( "#huddle_recipient" ).typeahead({
|
||||
source: people_list,
|
||||
items: 4,
|
||||
matcher: function (item) {
|
||||
|
||||
@ -195,7 +195,7 @@ function select_zephyr(next_zephyr, scroll_to) {
|
||||
function prepare_huddle(recipients) {
|
||||
// Used for both personals and huddles.
|
||||
show_compose('personal', $("#new_zephyr"));
|
||||
$("#recipient").val(recipients);
|
||||
$("#huddle_recipient").val(recipients);
|
||||
}
|
||||
|
||||
function same_recipient(a, b) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user