mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 10:57:58 +00:00
Use the new_zephyr form for personal zephyrs, rather than a duplicate.
(imported from commit 741a785efba9ea40b5c1022d710360f086a2d859)
This commit is contained in:
@@ -56,7 +56,7 @@ function compose_recipient() {
|
||||
}
|
||||
|
||||
function compose_huddle_message() {
|
||||
return $.trim($("#new_personal_zephyr").val());
|
||||
return $.trim($("#new_zephyr").val());
|
||||
}
|
||||
|
||||
function compose_error(error_text, bad_input) {
|
||||
@@ -64,12 +64,12 @@ function compose_error(error_text, bad_input) {
|
||||
.addClass('alert-error')
|
||||
.text(error_text)
|
||||
.stop(true).fadeTo(0, 1);
|
||||
$('#class-message, #personal-message').find('input[type="submit"]').removeAttr('disabled');
|
||||
$('#zephyr_compose').find('input[type="submit"]').removeAttr('disabled');
|
||||
bad_input.focus().select();
|
||||
}
|
||||
|
||||
function submit_buttons() {
|
||||
return $('#class-message, #personal-message').find('input[type="submit"]');
|
||||
return $('#zephyr_compose').find('input[type="submit"]');
|
||||
}
|
||||
|
||||
// *Synchronously* check if a class exists.
|
||||
@@ -143,7 +143,7 @@ function validate_huddle_message() {
|
||||
}
|
||||
|
||||
if (compose_huddle_message() === "") {
|
||||
compose_error("You have nothing to send!", $("#new_personal_zephyr"));
|
||||
compose_error("You have nothing to send!", $("#new_zephyr"));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user