aboutsummaryrefslogtreecommitdiff
path: root/src/static/main.js
blob: 24df4ea14b96376e09b73b6879250c3635017674 (plain)
1
2
3
4
5
6
7
8
function remove(id) {
    if (confirm(`Delete transaction?`)) {
        let request = new Request(`/ledger/${id}`, {
            method: 'delete',
        })
        fetch(request).then(r => window.location = "/ledger");
    }
}