Merge branch 'ent-4536-Quitar-el-autocompletado-de-los-campos-personalizados' into 'develop'
Ent 4536 quitar el autocompletado de los campos personalizados See merge request artica/pandorafms!3811
This commit is contained in:
commit
7593fe9f81
|
@ -2136,7 +2136,7 @@ function html_print_input_text_extended(
|
||||||
'list',
|
'list',
|
||||||
];
|
];
|
||||||
|
|
||||||
$output = '<input '.($password ? 'type="password" autocomplete="'.$autocomplete.'" ' : 'type="text" ');
|
$output = '<input '.($password ? 'type="password" autocomplete="'.$autocomplete.'" ' : 'type="text" autocomplete="'.$autocomplete.'"');
|
||||||
|
|
||||||
if ($readonly && (!is_array($attributes) || !array_key_exists('readonly', $attributes))) {
|
if ($readonly && (!is_array($attributes) || !array_key_exists('readonly', $attributes))) {
|
||||||
$output .= 'readonly="readonly" ';
|
$output .= 'readonly="readonly" ';
|
||||||
|
@ -2406,7 +2406,7 @@ function html_print_input_text(
|
||||||
$function='',
|
$function='',
|
||||||
$class='',
|
$class='',
|
||||||
$onChange='',
|
$onChange='',
|
||||||
$autocomplete='',
|
$autocomplete='off',
|
||||||
$autofocus=false,
|
$autofocus=false,
|
||||||
$onKeyDown='',
|
$onKeyDown='',
|
||||||
$formTo='',
|
$formTo='',
|
||||||
|
@ -2445,10 +2445,6 @@ function html_print_input_text(
|
||||||
$attr['onkeyup'] = $onKeyUp;
|
$attr['onkeyup'] = $onKeyUp;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($autocomplete !== '') {
|
|
||||||
$attr['autocomplete'] = $autocomplete;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($autofocus === true) {
|
if ($autofocus === true) {
|
||||||
$attr['autofocus'] = $autofocus;
|
$attr['autofocus'] = $autofocus;
|
||||||
}
|
}
|
||||||
|
@ -2474,7 +2470,7 @@ function html_print_input_text(
|
||||||
$return,
|
$return,
|
||||||
false,
|
false,
|
||||||
$function,
|
$function,
|
||||||
'off',
|
$autocomplete,
|
||||||
$disabled
|
$disabled
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -2546,6 +2542,10 @@ function html_print_input_email(array $settings):string
|
||||||
$settings['size'] = 255;
|
$settings['size'] = 255;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($settings['autocomplete']) === false) {
|
||||||
|
$settings['autocomplete'] = 'off';
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($settings as $attribute => $attr_value) {
|
foreach ($settings as $attribute => $attr_value) {
|
||||||
// Check valid attribute.
|
// Check valid attribute.
|
||||||
if (in_array($attribute, $valid_attrs) === false) {
|
if (in_array($attribute, $valid_attrs) === false) {
|
||||||
|
@ -2632,6 +2632,10 @@ function html_print_input_number(array $settings):string
|
||||||
$settings['maxlength'] = 255;
|
$settings['maxlength'] = 255;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($settings['autocomplete']) === false) {
|
||||||
|
$settings['autocomplete'] = 'off';
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($settings as $attribute => $attr_value) {
|
foreach ($settings as $attribute => $attr_value) {
|
||||||
// Check valid attribute.
|
// Check valid attribute.
|
||||||
if (in_array($attribute, $valid_attrs) === false) {
|
if (in_array($attribute, $valid_attrs) === false) {
|
||||||
|
@ -4420,7 +4424,7 @@ function html_print_input($data, $wrapper='div', $input_only=false)
|
||||||
((isset($data['function']) === true) ? $data['function'] : ''),
|
((isset($data['function']) === true) ? $data['function'] : ''),
|
||||||
((isset($data['class']) === true) ? $data['class'] : ''),
|
((isset($data['class']) === true) ? $data['class'] : ''),
|
||||||
((isset($data['onChange']) === true) ? $data['onChange'] : ''),
|
((isset($data['onChange']) === true) ? $data['onChange'] : ''),
|
||||||
((isset($data['autocomplete']) === true) ? $data['autocomplete'] : ''),
|
((isset($data['autocomplete']) === true) ? $data['autocomplete'] : 'off'),
|
||||||
((isset($data['autofocus']) === true) ? $data['autofocus'] : false),
|
((isset($data['autofocus']) === true) ? $data['autofocus'] : false),
|
||||||
((isset($data['onKeyDown']) === true) ? $data['onKeyDown'] : ''),
|
((isset($data['onKeyDown']) === true) ? $data['onKeyDown'] : ''),
|
||||||
((isset($data['form']) === true) ? $data['form'] : ''),
|
((isset($data['form']) === true) ? $data['form'] : ''),
|
||||||
|
|
Loading…
Reference in New Issue