#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)) {
|
if (!empty($field_value)) {
|
||||||
$field_value = io_safe_output($field_value);
|
$field_value = io_safe_output($field_value);
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue