This commit is contained in:
asyncnomi 2023-01-08 23:06:34 +01:00
parent 622b5624d0
commit 4dd1827ee7

View file

@ -632,7 +632,7 @@ function updateDemandes() {
<div class="prank-status">Statue: ${pd[pd_uid].state}</div>
${ (pd[pd_uid].state != "Accepted" && pd[pd_uid].state != "Refused" ) ?
`<span class="activity-btn">
<div class="prank-btn-delete">Annuler</div>
<div id="${pd_uid}" class="prank-btn-delete">Annuler</div>
</span>`
: ''
}
@ -646,7 +646,7 @@ function updateDemandes() {
data: JSON.stringify({
uid: localStorage.getItem('user'),
token: localStorage.getItem('token'),
prankUid: pd_uid
prankUid: this.id()
}),
contentType: "application/json; charset=utf-8",