diff --git a/pandora_console/godmode/alerts/configure_alert_command.php b/pandora_console/godmode/alerts/configure_alert_command.php index 722c680a27..27ee616f0b 100644 --- a/pandora_console/godmode/alerts/configure_alert_command.php +++ b/pandora_console/godmode/alerts/configure_alert_command.php @@ -413,18 +413,18 @@ $(document).ready (function () { $(".hide_inputs").each(function(index) { 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('style', '-webkit-text-security: disc; font-family: text-security-disc;'); } else { $input_in_row.prop('style', ''); } }); - + $(".hide_inputs").click(function() { var $input_in_row = $(this).closest('tr').find('.field_value'); if($(this).is(':checked')) { - $input_in_row.prop('type', 'password'); + $input_in_row.prop('style', '-webkit-text-security: disc; font-family: text-security-disc;'); } else { - $input_in_row.prop('type', 'text') + $input_in_row.prop('style', ''); } }); }); diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 610c2c1c26..bc8ffefe8a 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -4273,22 +4273,22 @@ function html_print_checkbox_extended( if (is_array($attributes) === true) { $tmpAttributes = []; - foreach ($attributes as $key => $val) { + foreach ($attributes as $key => $value) { switch ($key) { case 'input_class': - $inputClass .= ' '.$val; + $inputClass .= ' '.$value; break; case 'label_class': - $labelClass .= ' '.$val; + $labelClass .= ' '.$value; break; case 'label_style': - $labelStyle .= 'style="'.$val.'"'; + $labelStyle .= 'style="'.$value.'"'; break; default: - $tmpAttributes[] = $key.'="'.$val.'"'; + $tmpAttributes[] = $key.'="'.$value.'"'; break; } } diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 25c7202216..1a42e6c7b9 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -87,6 +87,11 @@ font-weight: 900; } +@font-face { + font-family: "text-security-disc"; + src: url("https://raw.githubusercontent.com/noppa/text-security/master/dist/text-security-disc.woff"); +} + /* @font-face { font-family: "lato-italic";