diff options
| author | jmreddy2106 <[email protected]> | 2022-05-03 18:29:31 -0400 |
|---|---|---|
| committer | jmreddy2106 <[email protected]> | 2022-05-03 18:29:31 -0400 |
| commit | b861c79f03429313d05ff0a8105b7715aec0ef4d (patch) | |
| tree | b0dcfa8cbf2cc5ce3fda7af854c1ce84ff053cf2 /interface/public | |
| parent | f807467dca2f08060b0bd4aa6b30ed231bb383b7 (diff) | |
| download | Welfare-Schemes-DMQL-b861c79f03429313d05ff0a8105b7715aec0ef4d.tar.xz Welfare-Schemes-DMQL-b861c79f03429313d05ff0a8105b7715aec0ef4d.zip | |
added geography controls
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 |
