feat(transaction-recurring): #100 implement editing of recurring transactions based on treasure chests
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 4m59s

This commit is contained in:
2025-05-20 23:18:16 +02:00
parent b7d216a982
commit c27cfc4f65
18 changed files with 948 additions and 59 deletions

View File

@@ -1,6 +1,6 @@
htmx.on("htmx:afterSwap", (e) => {
updateTime(e.target);
htmx.on("htmx:afterSwap", () => {
updateTime();
});
document.addEventListener("DOMContentLoaded", () => {
@@ -8,7 +8,7 @@ document.addEventListener("DOMContentLoaded", () => {
updateTime(document);
})
function updateTime(e) {
function updateTime() {
document.querySelectorAll(".datetime").forEach((el) => {
if (el.textContent !== "") {
el.textContent = el.textContent.includes("UTC") ? new Date(el.textContent).toLocaleString([], { day: 'numeric', month: 'short', year: 'numeric' }) : el.textContent;