gui CREATE button
cicd / ci (push) Successful in 1m3s
Details
cicd / ci (push) Successful in 1m3s
Details
parent
fcd7dd208c
commit
af1b23731a
|
|
@ -187,6 +187,15 @@
|
|||
}))
|
||||
}
|
||||
|
||||
function create() {
|
||||
http("POST", "/api/create", (body, status) => {
|
||||
if (status != 200)
|
||||
throw(`Unexpected status ${status}: ${body}`)
|
||||
loadTransactions([])
|
||||
load()
|
||||
}, JSON.stringify({}))
|
||||
}
|
||||
|
||||
function stage(who, contributesToHouse) {
|
||||
var d = new Date()
|
||||
const zeroPad = (num, places) => String(num).padStart(places, '0')
|
||||
|
|
@ -241,6 +250,11 @@
|
|||
</details>
|
||||
<details open>
|
||||
<summary>Register</summary>
|
||||
<form action="#" onsubmit="create(); return false;">
|
||||
<button style="width: 100%">
|
||||
CREATE
|
||||
</button>
|
||||
</form>
|
||||
<div id="reg">
|
||||
</div>
|
||||
</details>
|
||||
|
|
|
|||
Loading…
Reference in New Issue