mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-16 18:50:20 +00: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');
|
document.getElementById('overlay').classList.remove('loading');
|
||||||
}
|
}
|
||||||
|
|
||||||
function showPassword() {
|
function showPassword(id) {
|
||||||
var Password = document.getElementById("Password");
|
let passwordField = document.getElementById(id);
|
||||||
if (Password.value !== "" && Password.type === "password") {
|
if (passwordField.value !== "" && passwordField.type !== "text") {
|
||||||
Password.type = "text";
|
passwordField.type = "text";
|
||||||
} else {
|
} else if (passwordField.value === "" && passwordField.type !== "password") {
|
||||||
Password.type = "password";
|
passwordField.type = "password";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue