#12298 clear hidden fields

This commit is contained in:
Jorge Rincon 2023-10-24 09:57:25 +02:00
parent 9a74b74b98
commit 1838126354
1 changed files with 4 additions and 1 deletions

View File

@ -707,7 +707,7 @@ $(document).ready (function () {
name: "id_action",
value: "<?php echo (int) $id; ?>"
});
jQuery.post (<?php echo "'".ui_get_full_url('ajax.php', false, false, false)."'"; ?>,
values,
function (data, status) {
@ -739,6 +739,9 @@ $(document).ready (function () {
// If the row is empty, hide it
if (field_row == '') {
// Clear hidden fields.
$("[name=field" + i + "_value]").val('');
$("[name=field" + i + "_recovery_value]").val('')
$table_macros_field.hide();
continue;
}