#12767 Fixed password 3

This commit is contained in:
Daniel Maya 2024-01-22 17:29:51 +01:00
parent a41d2214e6
commit 6948306d82

View File

@ -2728,8 +2728,8 @@ function html_print_input_text_extended(
if ($hide_div_eye !== false) { if ($hide_div_eye !== false) {
echo "<script> echo "<script>
$(document).ready (function () { $(document).ready (function () {
$('input[name=\"".$name."\"]').val(\"".$value."\") $('input[name=\"".$name."\"]').val(\"".$value."\");
observerInputPassword('".$name."'); observerInputPassword('".$name."');
}); });
</script>"; </script>";
@ -2746,9 +2746,11 @@ function html_print_input_text_extended(
]; ];
foreach ($attrs as $attribute => $default) { foreach ($attrs as $attribute => $default) {
if (array_key_exists($attribute, $attributes)) { if (array_key_exists($attribute, $attributes)
|| ($password === true && $attribute === 'value')
) {
continue; continue;
} //end if }
/* /*
* Remember, this next code have a $$ that for example there is a var as * Remember, this next code have a $$ that for example there is a var as
@ -2758,7 +2760,7 @@ function html_print_input_text_extended(
* *
*/ */
// Exact operator because we want to show "0" on the value // Exact operator because we want to show "0" on the value.
if ($attribute !== '') { if ($attribute !== '') {
$output .= $attribute.'="'.$$attribute.'" '; $output .= $attribute.'="'.$$attribute.'" ';
} else if ($default != '') { } else if ($default != '') {
@ -2789,6 +2791,12 @@ function html_print_input_text_extended(
], ],
true true
); );
echo "<script>
$(document).ready (function () {
$('input[name=\"".$name."\"]').val(\"".$value.'");
});
</script>';
} }
if (!$return) { if (!$return) {