FIX Missing token in ajax call

This commit is contained in:
Laurent Destailleur 2022-10-06 22:50:57 +02:00
parent bd4d6cb77e
commit 67e8851a4e
2 changed files with 2 additions and 2 deletions

View File

@ -414,7 +414,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
json["amountPayment"] = $("#amountpayment").attr("value");
json["amounts"] = _elemToJson(form.find("input.amount"));
json["remains"] = _elemToJson(form.find("input.remain"));
json["token"] = "'.currentToken().'";
if (imgId != null) {
json["imgClicked"] = imgId;
}

View File

@ -431,7 +431,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
json["amountPayment"] = $("#amountpayment").attr("value");
json["amounts"] = _elemToJson(form.find("input.amount"));
json["remains"] = _elemToJson(form.find("input.remain"));
json["token"] = "'.currentToken().'";
if (imgId != null) {
json["imgClicked"] = imgId;
}