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)) {
$field_value = io_safe_output($field_value);

View File

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

View File

@ -21,7 +21,10 @@ function parse_alert_command(command, classs) {
"[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_string = hidden_character.repeat($(this).val().length);