mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#12298 clear hidden fields
This commit is contained in:
parent
9a74b74b98
commit
1838126354
@ -707,7 +707,7 @@ $(document).ready (function () {
|
|||||||
name: "id_action",
|
name: "id_action",
|
||||||
value: "<?php echo (int) $id; ?>"
|
value: "<?php echo (int) $id; ?>"
|
||||||
});
|
});
|
||||||
|
|
||||||
jQuery.post (<?php echo "'".ui_get_full_url('ajax.php', false, false, false)."'"; ?>,
|
jQuery.post (<?php echo "'".ui_get_full_url('ajax.php', false, false, false)."'"; ?>,
|
||||||
values,
|
values,
|
||||||
function (data, status) {
|
function (data, status) {
|
||||||
@ -739,6 +739,9 @@ $(document).ready (function () {
|
|||||||
|
|
||||||
// If the row is empty, hide it
|
// If the row is empty, hide it
|
||||||
if (field_row == '') {
|
if (field_row == '') {
|
||||||
|
// Clear hidden fields.
|
||||||
|
$("[name=field" + i + "_value]").val('');
|
||||||
|
$("[name=field" + i + "_recovery_value]").val('')
|
||||||
$table_macros_field.hide();
|
$table_macros_field.hide();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user