Hibajavítás hegyek
This commit is contained in:
@@ -434,4 +434,18 @@ function saveEntity(csrfToken, data, url) {
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
function togglePasswordVisibility() {
|
||||
const passwordInput = document.getElementById("passwordInput");
|
||||
const icon = document.getElementById("toggleIcon");
|
||||
|
||||
if (passwordInput.type === "password") {
|
||||
passwordInput.type = "text";
|
||||
icon.classList.remove("bi-eye");
|
||||
icon.classList.add("bi-eye-slash");
|
||||
} else {
|
||||
passwordInput.type = "password";
|
||||
icon.classList.remove("bi-eye-slash");
|
||||
icon.classList.add("bi-eye");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user