Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

invite: Focus first input in invite window in invite.js.

Abhijeet Prasad Bodas9fc10479fe7a
diff --git a/static/js/invite.js b/static/js/invite.js
index eb1cce60a16..3fea54fcfb0 100644
--- a/static/js/invite.js
+++ b/static/js/invite.js
@@ -154,7 +154,6 @@ function prepare_form_to_be_shown() {
exports.launch = function () {
$("#submit-invitation").button();
prepare_form_to_be_shown();
- autosize($("#invitee_emails").trigger("focus"));
overlays.open_overlay({
name: "invite",
@@ -163,6 +162,8 @@ exports.launch = function () {
hashchange.exit_overlay();
},
});
+
+ autosize($("#invitee_emails").trigger("focus"));
};
exports.initialize = function () {