userpage: autofill username in pwr modal
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user