mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
Merge branch 'ent-10328-14815-campos-ocultos-no-se-ocultan-en-comandos-segun-el-navegador' into 'develop'
Ent 10328 14815 campos ocultos no se ocultan en comandos segun el navegador See merge request artica/pandorafms!5783
This commit is contained in:
commit
0bb69dda4d
@ -133,7 +133,7 @@ if (is_ajax()) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$style = ((int) $field_hidden === 1) ? '-webkit-text-security: disc;' : '';
|
$style = ((int) $field_hidden === 1) ? '-webkit-text-security: disc; font-family: text-security-disc;' : '';
|
||||||
|
|
||||||
if (!empty($field_value)) {
|
if (!empty($field_value)) {
|
||||||
$field_value = io_safe_output($field_value);
|
$field_value = io_safe_output($field_value);
|
||||||
|
@ -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
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -413,16 +413,16 @@ $(document).ready (function () {
|
|||||||
$(".hide_inputs").each(function(index) {
|
$(".hide_inputs").each(function(index) {
|
||||||
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('style', '-webkit-text-security: disc; font-family: text-security-disc;');
|
||||||
} else {
|
} else {
|
||||||
$input_in_row.prop('style', '');
|
$input_in_row.prop('style', '');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".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('style', '-webkit-text-security: disc; font-family: text-security-disc;');
|
||||||
} else {
|
} else {
|
||||||
$input_in_row.prop('style', '');
|
$input_in_row.prop('style', '');
|
||||||
}
|
}
|
||||||
|
@ -4273,22 +4273,22 @@ function html_print_checkbox_extended(
|
|||||||
|
|
||||||
if (is_array($attributes) === true) {
|
if (is_array($attributes) === true) {
|
||||||
$tmpAttributes = [];
|
$tmpAttributes = [];
|
||||||
foreach ($attributes as $key => $value) {
|
foreach ($attributes as $key => $val) {
|
||||||
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,10 @@ function parse_alert_command(command, classs) {
|
|||||||
"[RECOVER]" + $($(".fields")[nfield - 1]).val()
|
"[RECOVER]" + $($(".fields")[nfield - 1]).val()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else if ($(this).css("-webkit-text-security") == "disc") {
|
} else if (
|
||||||
|
$(this).css("-webkit-text-security") == "disc" ||
|
||||||
|
$(this).css("font-family") == "text-security-disc"
|
||||||
|
) {
|
||||||
var hidden_character = "*";
|
var hidden_character = "*";
|
||||||
var hidden_string = hidden_character.repeat($(this).val().length);
|
var hidden_string = hidden_character.repeat($(this).val().length);
|
||||||
|
|
||||||
|
@ -87,6 +87,11 @@
|
|||||||
font-weight: 900;
|
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-face {
|
||||||
font-family: "lato-italic";
|
font-family: "lato-italic";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user