#12501 Fixed password field

This commit is contained in:
Daniel Maya 2023-11-30 13:18:44 +01:00
parent 8cfb0353dd
commit 6154ce725b
3 changed files with 10 additions and 9 deletions

View File

@ -986,17 +986,12 @@ foreach ($fields as $field) {
}
if ((bool) $field['is_password_type'] === true) {
$customContent = html_print_input_text_extended(
$customContent = html_print_input_password(
'customvalue_'.$field['id_field'],
$custom_value,
'customvalue_'.$field['id_field'],
'',
30,
100,
$view_mode,
'',
'',
true,
45,
255,
true
);
} else if ($field['is_link_enabled']) {

View File

@ -275,21 +275,27 @@ $(document).ready (function () {
$('#configure_field-3').show();
dialog_message("#message_no_set_password");
$('#configure_field-1').hide();
$('#configure_field-2-0').hide();
}
else{
$('#configure_field-3').hide();
$('#configure_field-1').show();
$('#configure_field-2-0').show();
}
});
$('input[type=checkbox][name=is_password_type]').change(function () {
if( $('input[type=checkbox][name=is_password_type]').prop('checked')){
$('#configure_field-1').hide();
dialog_message("#message_no_set_combo");
$('#configure_field-3').hide();
$('#configure_field-2-1').hide();
}
else{
if($('input[type=checkbox][name=is_combo_enable]').prop('checked') === true) {
$('#configure_field-3').show();
}
$('#configure_field-1').show();
$('#configure_field-2-1').show();
}
});
});

View File

@ -11810,7 +11810,7 @@ p.trademark-copyright {
}
.show-hide-pass {
position: fixed;
position: absolute;
border: 0;
outline: none;
margin-left: -50px;