Fix incompatibility with Firefox

This commit is contained in:
miguel angel rasteu 2023-04-25 16:47:52 +02:00
parent ed6364d3c0
commit 8108a84ba7
2 changed files with 7 additions and 7 deletions

View File

@ -369,7 +369,7 @@ for ($i = 1; $i <= $config['max_macro_fields']; $i++) {
$selected,
!$is_management_allowed,
'cursor: \'pointer\'',
'class="hide_inputs"',
['input_class' => 'hide_inputs'],
true
)
);
@ -422,9 +422,9 @@ $(document).ready (function () {
$(".hide_inputs").click(function() {
var $input_in_row = $(this).closest('tr').find('.field_value');
if($(this).is(':checked')) {
$input_in_row.prop('style', '-webkit-text-security: disc;');
$input_in_row.prop('type', 'password');
} else {
$input_in_row.prop('style', '');
$input_in_row.prop('type', 'text')
}
});
});

View File

@ -4276,19 +4276,19 @@ function html_print_checkbox_extended(
foreach ($attributes as $key => $value) {
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;
}
}