delete photo then redirect to landing page

This commit is contained in:
jojo aquino 2025-04-27 11:24:01 +01:00
parent f484ec40d3
commit fd325afe4f
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
</button> </button>
@if (Model.IdentificationDocument_UID != Guid.Empty) @if (Model.IdentificationDocument_UID != Guid.Empty)
{ {
<button type="button" class="btn btn-danger btn-lg identificationdocument__delete__button"> <button type="button" data-uid="@Model.IdentificationDocument_UID" class="btn btn-danger btn-lg identificationdocument__delete__button">
<i class="fa fa-times me-2"></i> <i class="fa fa-times me-2"></i>
DELETE DELETE
</button> </button>

View File

@ -47,7 +47,7 @@
jfa.utilities.request.post(url, {}) jfa.utilities.request.post(url, {})
.then(resp => { .then(resp => {
if (resp.ok === true) { if (resp.ok === true) {
jfa.page.reload(); location.href = "/";
} }
}) })
.catch(err => console.error(err)); .catch(err => console.error(err));