refactor: Update on-change event to use custom-expiration-time-input.

Replaces custom-invite-expiration-time with custom-expiration-time-input
and custom-expiration-time-unit in the on-change event.
This commit is contained in:
opmkumar 2024-11-02 01:57:48 +05:30 committed by Tim Abbott
parent a34577f82e
commit b149d5fb70
1 changed files with 1 additions and 1 deletions

View File

@ -439,7 +439,7 @@ function open_invite_user_modal(e: JQuery.ClickEvent<Document, undefined>): void
}
});
$("#custom-invite-expiration-time").on("change", () => {
$("#custom-expiration-time-input, #custom-expiration-time-unit").on("change", () => {
custom_expiration_time_input = util.check_time_input(
$<HTMLInputElement>("input#custom-expiration-time-input").val()!,
);