mirror of https://github.com/zulip/zulip.git
invite: Fix compose box focus on clicking (Un)check All in invite window.
Fixes #16077.
This commit is contained in:
parent
e5054a3a66
commit
49fd272d7d
|
@ -100,7 +100,7 @@ function submit_invitation_form() {
|
|||
complete() {
|
||||
$("#submit-invitation").button("reset");
|
||||
$("#invitee_emails").focus();
|
||||
ui.get_scroll_element($('#invite_user_form .modal-body'))[0].scrollTop = 0;
|
||||
ui.get_scroll_element($("#invite_user_form .modal-body"))[0].scrollTop = 0;
|
||||
},
|
||||
});
|
||||
}
|
||||
|
@ -176,14 +176,12 @@ exports.launch = function () {
|
|||
};
|
||||
|
||||
exports.initialize = function () {
|
||||
$(document).on("click", ".invite_check_all_button", (e) => {
|
||||
$(document).on("click", "#invite_check_all_button", () => {
|
||||
$("#streams_to_add :checkbox").prop("checked", true);
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$(document).on("click", ".invite_uncheck_all_button", (e) => {
|
||||
$(document).on("click", "#invite_uncheck_all_button", () => {
|
||||
$("#streams_to_add :checkbox").prop("checked", false);
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$("#submit-invitation").on("click", () => {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{! Client-side Mustache template for rendering subscriptions in the "invite user" form.}}
|
||||
<div class="invite-stream-controls">
|
||||
<a href="#" class="invite_check_all_button">{{t "Check all" }}</a> |
|
||||
<a href="#" class="invite_uncheck_all_button">{{t "Uncheck all" }}</a>
|
||||
<button class="btn btn-link" type="button" id="invite_check_all_button">{{t "Check all" }}</button> |
|
||||
<button class="btn btn-link" type="button" id="invite_uncheck_all_button">{{t "Uncheck all" }}</button>
|
||||
</div>
|
||||
<div id="invite-stream-checkboxes" class="new-style">
|
||||
{{#each streams}}
|
||||
|
|
Loading…
Reference in New Issue