#10328 Fix security font and values
This commit is contained in:
parent
1d885f5e42
commit
52886b96b3
|
@ -413,7 +413,7 @@ $(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', '');
|
||||
}
|
||||
|
@ -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('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', '');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue