mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-12-27 17:21:14 +08:00
Update php/public/forms.js
Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
parent
203b7cb3fc
commit
620c72de23
1 changed files with 6 additions and 6 deletions
|
@ -39,12 +39,12 @@
|
|||
document.getElementById('overlay').classList.remove('loading');
|
||||
}
|
||||
|
||||
function showPassword() {
|
||||
var Password = document.getElementById("Password");
|
||||
if (Password.value !== "" && Password.type === "password") {
|
||||
Password.type = "text";
|
||||
} else {
|
||||
Password.type = "password";
|
||||
function showPassword(id) {
|
||||
let passwordField = document.getElementById(id);
|
||||
if (passwordField.value !== "" && passwordField.type !== "text") {
|
||||
passwordField.type = "text";
|
||||
} else if (passwordField.value === "" && passwordField.type !== "password") {
|
||||
passwordField.type = "password";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue