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(); + + diff --git a/src/main/resources/templates/transaction_update.html b/src/main/resources/templates/transaction_update.html index d9d54e7..845047c 100644 --- a/src/main/resources/templates/transaction_update.html +++ b/src/main/resources/templates/transaction_update.html @@ -156,7 +156,7 @@
-