mirror of https://github.com/zulip/zulip.git
invites: correctly focus on the email textarea once the modal is visible.
(imported from commit 97aa226f892b726e7456184a0d671e4f51079d3d)
This commit is contained in:
parent
8ed1229328
commit
19d93ba970
|
@ -36,8 +36,10 @@ exports.initialize = function () {
|
|||
|
||||
$('#submit-invitation').button();
|
||||
$('#invite-user').on('show', prepare_form_to_be_shown);
|
||||
invitee_emails.focus();
|
||||
invitee_emails.autosize();
|
||||
$('#invite-user').on('shown', function () {
|
||||
invitee_emails.focus().autosize();
|
||||
});
|
||||
|
||||
$("#invite_user_form").ajaxForm({
|
||||
dataType: 'json',
|
||||
beforeSubmit: function(arr, $form, options) {
|
||||
|
|
Loading…
Reference in New Issue