Retrospring/app/javascript/retrospring/features/settings/password.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
272 B
TypeScript
Raw Normal View History

export function userSubmitHandler(event: Event): void {
if (document.querySelector<HTMLInputElement>('#user_current_password').value.length === 0) {
event.preventDefault();
document.querySelector<HTMLButtonElement>('[data-target="#modal-passwd"]').click();
}
}