1
mirror of https://github.com/rvdbreemen/OTGW-firmware synced 2024-11-16 04:33:49 +01:00

Merge pull request #243 from DutchessNicole/main

added provisions for password field
This commit is contained in:
Robert van den Breemen 2024-04-13 13:37:07 +02:00 committed by GitHub
commit 1c8485af72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -520,6 +520,12 @@
sInput.setAttribute("maxlength", data[i].maxlen); sInput.setAttribute("maxlength", data[i].maxlen);
sInput.setAttribute("size", (data[i].maxlen > 20 ? 20 : data[i].maxlen)); sInput.setAttribute("size", (data[i].maxlen > 20 ? 20 : data[i].maxlen));
} }
else if (data[i].type == "p")
{
sInput.setAttribute("type", "password");
sInput.setAttribute("maxlength", data[i].maxlen);
sInput.setAttribute("size", (data[i].maxlen > 20 ? 20 : data[i].maxlen));
}
else if (data[i].type == "f") else if (data[i].type == "f")
{ {
sInput.setAttribute("type", "number"); sInput.setAttribute("type", "number");