always highlight all inbox transactions
cicd / ci (push) Successful in 50s
Details
cicd / ci (push) Successful in 50s
Details
parent
6c66b6debb
commit
bb11214180
|
|
@ -6,6 +6,9 @@
|
|||
border: 1px solid black;
|
||||
}
|
||||
.amended {
|
||||
border: 2px solid red;
|
||||
}
|
||||
.revised {
|
||||
border: 2px solid green;
|
||||
}
|
||||
</style>
|
||||
|
|
@ -71,7 +74,7 @@
|
|||
|
||||
var result = `<table>`
|
||||
for (var t of transactions) {
|
||||
result += `<tr id="transaction-${t[0].Transaction}" transaction='${btoa(JSON.stringify(t))}' style="cursor: crosshair;" onclick="stageEdit(this); return false;">`
|
||||
result += `<tr name="transaction-${t[0].Date}-${t[0].Description}" transaction='${btoa(JSON.stringify(t))}' style="cursor: crosshair;" onclick="stageEdit(this); return false;" class="${t[0].Transaction.includes("inbox") ? "revised" : ""}">`
|
||||
result += ` <td style="width: 6em;">${t[0].Date}</td>`
|
||||
result += ` <td style="width: 10em;">${t[0].Description}</td>`
|
||||
result += ` <td><table style="margin: 0;">`
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue