diff --git a/cmd/http/public/transactions.html b/cmd/http/public/transactions.html
index 255b035..896b201 100644
--- a/cmd/http/public/transactions.html
+++ b/cmd/http/public/transactions.html
@@ -6,6 +6,9 @@
border: 1px solid black;
}
.amended {
+ border: 2px solid red;
+ }
+ .revised {
border: 2px solid green;
}
@@ -71,7 +74,7 @@
var result = `
`
for (var t of transactions) {
- result += ``
+ result += `
`
result += ` | ${t[0].Date} | `
result += ` ${t[0].Description} | `
result += ` `
@@ -157,7 +160,14 @@
if (status != 200)
throw(`Unexpected status ${status}: ${body}`)
load(() => {
- document.getElementById(`transaction-${now.Transaction}`).className = "amended"
+ /*
+ var elements = document.getElementsByName(`transaction-${old.Date}-${old.Description}`)
+ for (var ele of elements)
+ ele.className = "amended"
+ var elements = document.getElementsByName(`transaction-${now.Date}-${now.Description}`)
+ for (var ele of elements)
+ ele.className = "revised"
+ */
})
}, JSON.stringify({
old: old,
|