#10328 Fix JS code
This commit is contained in:
parent
52886b96b3
commit
cb63ee92f7
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue