diff options
Diffstat (limited to 'interface/public')
| -rw-r--r-- | interface/public/citizens.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/interface/public/citizens.js b/interface/public/citizens.js index ef112d1..27130ec 100644 --- a/interface/public/citizens.js +++ b/interface/public/citizens.js @@ -41,3 +41,18 @@ function editCitizen(event) { }, }); } + +function deleteCitizenRecord(citizen) { + citizen_id = JSON.parse(citizen).citizen_id; + $.ajax({ + url: "/api/citizens/delete", + type: "POST", + data: { citizen_id }, + success: function (response) { + console.log(response); + location.reload(); + } + }); + + +}
\ No newline at end of file |
