mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-16 10:19:59 +01:00
Merge pull request #610 from Retrospring/fix/sudo-syntax
Fix syntax error in password confirmation dialogues
This commit is contained in:
commit
1f970d8980
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
export function userSubmitHandler(event: Event): void {
|
export function userSubmitHandler(event: Event): void {
|
||||||
if (document.querySelector<HTMLInputElement>('#user_current_password').value.length === 0) {
|
if (document.querySelector<HTMLInputElement>('#user_current_password').value.length === 0) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
document.querySelector<HTMLButtonElement>('[data-target=#modal-passwd]').click();
|
document.querySelector<HTMLButtonElement>('[data-target="#modal-passwd"]').click();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue