mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
move showpassword to global scope
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
9f77ac6c78
commit
ea46ed4095
1 changed files with 10 additions and 9 deletions
|
|
@ -1,4 +1,14 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
function showPassword(id) {
|
||||||
|
let passwordField = document.getElementById(id);
|
||||||
|
if (passwordField.type === "password" && passwordField.value !== "") {
|
||||||
|
passwordField.type = "text";
|
||||||
|
} else if (passwordField.type === "text" && passwordField.value === "") {
|
||||||
|
passwordField.type = "password";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
(function (){
|
(function (){
|
||||||
let lastError;
|
let lastError;
|
||||||
|
|
||||||
|
|
@ -39,15 +49,6 @@
|
||||||
document.getElementById('overlay').classList.remove('loading');
|
document.getElementById('overlay').classList.remove('loading');
|
||||||
}
|
}
|
||||||
|
|
||||||
function showPassword(id) {
|
|
||||||
let passwordField = document.getElementById(id);
|
|
||||||
if (passwordField.type === "password" && passwordField.value !== "") {
|
|
||||||
passwordField.type = "text";
|
|
||||||
} else if (passwordField.type === "text" && passwordField.value === "") {
|
|
||||||
passwordField.type = "password";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function initForm(form) {
|
function initForm(form) {
|
||||||
function submit(event)
|
function submit(event)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue