aboutsummaryrefslogtreecommitdiff
path: root/src/static/main.js
blob: 1bcf5e5fb50722e30f66c2568fee79672627b9fe (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");
    }
}