From 852a1cf90094bb7aee7f0ad3c6dc658dcc98156b Mon Sep 17 00:00:00 2001 From: wahyu Date: Wed, 30 Aug 2023 14:36:58 +0700 Subject: [PATCH] update reset form --- edit-mode/function/expenseResource.js | 1 + edit-mode/function/materialResource.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/edit-mode/function/expenseResource.js b/edit-mode/function/expenseResource.js index 2ab9f3f..b2ece13 100644 --- a/edit-mode/function/expenseResource.js +++ b/edit-mode/function/expenseResource.js @@ -4,6 +4,7 @@ function resetFormAssignexpense() { $('#select-expense').val(null).trigger("change"); $('#select-expense').find('option').remove(); $('#select-expense').val(""); + $('#uom-req-expense').val(null).trigger('change'); $('#form-assign-expense').trigger("reset"); $('#btn-assign-expense').html('Assign'); $('#btn-assign-expense').prop("disabled", false); diff --git a/edit-mode/function/materialResource.js b/edit-mode/function/materialResource.js index 9efa127..9635d96 100644 --- a/edit-mode/function/materialResource.js +++ b/edit-mode/function/materialResource.js @@ -4,6 +4,8 @@ function resetFormAssignMaterial() { $('#select-material').val(null).trigger("change"); $('#select-material').find('option').remove(); $('#select-material').val(""); + $('#uom-req-material').val(null).trigger('change'); + $('#select-material-integration').val(null).trigger('change'); $('#form-assign-material').trigger("reset"); $('#btn-assign-material').html('Assign'); $('#btn-assign-material').prop("disabled", false);