From 5ff606d5262237a73e6efc1440bf2643785a0453 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Tue, 25 Apr 2023 13:10:47 +0700 Subject: [PATCH] Use checkbox instead of text [Installer] --- install.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install.php b/install.php index b7add87d..7e627df5 100644 --- a/install.php +++ b/install.php @@ -763,7 +763,10 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { -
p('Show password') ?>
+
+ + +
@@ -804,7 +807,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { $("#jsshowPassword").on("click", function() { var input = document.getElementById("jspassword"); - if (input.getAttribute("type") == "text") { + if (!$(this).is(':checked')) { input.setAttribute("type", "password"); } else { input.setAttribute("type", "text");