diff --git a/src/main/resources/templates/transaction_create.html b/src/main/resources/templates/transaction_create.html index 53e3bd3..0c818e9 100644 --- a/src/main/resources/templates/transaction_create.html +++ b/src/main/resources/templates/transaction_create.html @@ -113,58 +113,66 @@
- + transactionType.addEventListener("change", function () { + + toggleCategory(); + + categoryId.value = ""; + + }); + + if (tType == "0") { + transactionType.value = "0"; + } else if (tType == "1") { + transactionType.value = "1"; + } + + toggleCategory(); + +