From 8108a84ba7cdadc503409b305743754bc2ef5ae7 Mon Sep 17 00:00:00 2001 From: miguel angel rasteu Date: Tue, 25 Apr 2023 16:47:52 +0200 Subject: [PATCH] Fix incompatibility with Firefox --- .../godmode/alerts/configure_alert_command.php | 6 +++--- pandora_console/include/functions_html.php | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pandora_console/godmode/alerts/configure_alert_command.php b/pandora_console/godmode/alerts/configure_alert_command.php index 1631f2f24e..722c680a27 100644 --- a/pandora_console/godmode/alerts/configure_alert_command.php +++ b/pandora_console/godmode/alerts/configure_alert_command.php @@ -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') } }); }); diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index bc8ffefe8a..88cb032570 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -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; } }