Page to edit an expense

This commit is contained in:
2025-07-16 22:25:48 +01:00
parent c1e3a68ac1
commit 2a247fea01
12 changed files with 268 additions and 236 deletions
-23
View File
@@ -19,26 +19,3 @@
</fieldset>
</form>
</div>
<script>
document.body.addEventListener("formState", function(evt) {
var messageDiv = document.getElementById("form-state")
messageDiv.innerHTML = evt.detail.value
setTimeout(() => {
messageDiv.innerHTML = ""
}, 3000);
});
// Add the spinner
var btn = document.getElementById("category-submit-button");
btn.addEventListener('htmx:beforeRequest', function (evt) {
btn.classList.add("loading");
spinner(btn)
});
btn.addEventListener('htmx:afterRequest', function (evt) {
btn.classList.remove("loading");
});
</script>