mirror of https://github.com/zulip/zulip.git
demo-orgs: Specify email input when rendering add email modal.
There are two inputs for the add email modal in demo organizations, one to add the email address of the owner and one to update their full name. We want the email input to be selected when the modal is opened.
This commit is contained in:
parent
7416e9c29c
commit
10f03fce11
|
@ -713,9 +713,7 @@ export function set_up(
|
||||||
form_id: "demo_organization_add_email_form",
|
form_id: "demo_organization_add_email_form",
|
||||||
on_click: do_demo_organization_add_email,
|
on_click: do_demo_organization_add_email,
|
||||||
on_shown() {
|
on_shown() {
|
||||||
ui_util.place_caret_at_end(
|
ui_util.place_caret_at_end(util.the($("input#demo_organization_add_email")));
|
||||||
util.the($("#demo_organization_add_email_form input")),
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
post_render: demo_organization_add_email_post_render,
|
post_render: demo_organization_add_email_post_render,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue