This commit is contained in:
miguel angel rasteu 2023-05-17 10:54:43 +02:00
parent 52886b96b3
commit cb63ee92f7
3 changed files with 10 additions and 7 deletions

View File

@ -133,7 +133,7 @@ if (is_ajax()) {
} }
} }
$style = ((int) $field_hidden === 1) ? '-webkit-text-security: disc;' : ''; $style = ((int) $field_hidden === 1) ? '-webkit-text-security: disc; font-family: text-security-disc;' : '';
if (!empty($field_value)) { if (!empty($field_value)) {
$field_value = io_safe_output($field_value); $field_value = io_safe_output($field_value);

View File

@ -4273,22 +4273,22 @@ function html_print_checkbox_extended(
if (is_array($attributes) === true) { if (is_array($attributes) === true) {
$tmpAttributes = []; $tmpAttributes = [];
foreach ($attributes as $key => $value) { foreach ($attributes as $key => $val) {
switch ($key) { switch ($key) {
case 'input_class': case 'input_class':
$inputClass .= ' '.$value; $inputClass .= ' '.$val;
break; break;
case 'label_class': case 'label_class':
$labelClass .= ' '.$value; $labelClass .= ' '.$val;
break; break;
case 'label_style': case 'label_style':
$labelStyle .= 'style="'.$value.'"'; $labelStyle .= 'style="'.$val.'"';
break; break;
default: default:
$tmpAttributes[] = $key.'="'.$value.'"'; $tmpAttributes[] = $key.'="'.$val.'"';
break; break;
} }
} }

View File

@ -21,7 +21,10 @@ function parse_alert_command(command, classs) {
"[RECOVER]" + $($(".fields")[nfield - 1]).val() "[RECOVER]" + $($(".fields")[nfield - 1]).val()
); );
} }
} else if ($(this).css("-webkit-text-security") == "disc") { } else if (
$(this).css("-webkit-text-security") == "disc" ||
$(this).css("font-family") == "text-security-disc"
) {
var hidden_character = "*"; var hidden_character = "*";
var hidden_string = hidden_character.repeat($(this).val().length); var hidden_string = hidden_character.repeat($(this).val().length);