mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-23 01:20:11 +00:00
userpage: autofill username in pwr modal
This commit is contained in:
parent
22c91be127
commit
3b3f37365a
@ -52,6 +52,9 @@ window.modals = {} as Modals;
|
|||||||
};
|
};
|
||||||
const resetButton = document.getElementById("modal-login-pwr");
|
const resetButton = document.getElementById("modal-login-pwr");
|
||||||
resetButton.onclick = () => {
|
resetButton.onclick = () => {
|
||||||
|
const usernameInput = document.getElementById("login-user") as HTMLInputElement;
|
||||||
|
const input = document.getElementById("pwr-address") as HTMLInputElement;
|
||||||
|
input.value = usernameInput.value;
|
||||||
window.modals.login.close();
|
window.modals.login.close();
|
||||||
window.modals.pwr.show();
|
window.modals.pwr.show();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user