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, $selected,
!$is_management_allowed, !$is_management_allowed,
'cursor: \'pointer\'', 'cursor: \'pointer\'',
'class="hide_inputs"', ['input_class' => 'hide_inputs'],
true true
) )
); );
@ -422,9 +422,9 @@ $(document).ready (function () {
$(".hide_inputs").click(function() { $(".hide_inputs").click(function() {
var $input_in_row = $(this).closest('tr').find('.field_value'); var $input_in_row = $(this).closest('tr').find('.field_value');
if($(this).is(':checked')) { if($(this).is(':checked')) {
$input_in_row.prop('style', '-webkit-text-security: disc;'); $input_in_row.prop('type', 'password');
} else { } 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) { foreach ($attributes as $key => $value) {
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;
} }
} }