feat(transaction-recurring): #100 implement editing of recurring transactions based on treasure chests
This commit was merged in pull request #121.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user