diff --git a/app/accounting/manage_account.php b/app/accounting/manage_account.php index 704907b..f5da6c1 100644 --- a/app/accounting/manage_account.php +++ b/app/accounting/manage_account.php @@ -222,7 +222,7 @@ autoPrepare: true, checkRequired: 0, action: 'read', - data: { id: }, + data: { id: }, onSuccess: function(res) { var item = res.output; $('#id').val(item.id); diff --git a/app/accounting/manage_department.php b/app/accounting/manage_department.php index fcaa2e5..f17f99f 100644 --- a/app/accounting/manage_department.php +++ b/app/accounting/manage_department.php @@ -89,7 +89,7 @@ autoPrepare: true, checkRequired: 0, action: 'read', - data: { id: }, + data: { id: }, onSuccess: function(res) { var item = res.output; $('#id').val(item.id); diff --git a/app/assets/js/custom.js b/app/assets/js/custom.js index 12b9f39..5b5ad57 100644 --- a/app/assets/js/custom.js +++ b/app/assets/js/custom.js @@ -1074,6 +1074,36 @@ function to_iso_date(dateStr) { } +/** + * Clear every field inside a form or form-like container — the "Clear" buttons + * on the master-data pages. It was called by five pages but never defined, so + * each click threw a ReferenceError, and where the container is a