FIX Missing token in ajax call

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

View File

@ -413,7 +413,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

@ -430,7 +430,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;
}