FIX Missing token in ajax call
This commit is contained in:
parent
ff33a1852f
commit
915f20baa2
@ -413,7 +413,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
|
|||||||
json["amountPayment"] = $("#amountpayment").attr("value");
|
json["amountPayment"] = $("#amountpayment").attr("value");
|
||||||
json["amounts"] = _elemToJson(form.find("input.amount"));
|
json["amounts"] = _elemToJson(form.find("input.amount"));
|
||||||
json["remains"] = _elemToJson(form.find("input.remain"));
|
json["remains"] = _elemToJson(form.find("input.remain"));
|
||||||
|
json["token"] = "'.currentToken().'";
|
||||||
if (imgId != null) {
|
if (imgId != null) {
|
||||||
json["imgClicked"] = imgId;
|
json["imgClicked"] = imgId;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -430,7 +430,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
|
|||||||
json["amountPayment"] = $("#amountpayment").attr("value");
|
json["amountPayment"] = $("#amountpayment").attr("value");
|
||||||
json["amounts"] = _elemToJson(form.find("input.amount"));
|
json["amounts"] = _elemToJson(form.find("input.amount"));
|
||||||
json["remains"] = _elemToJson(form.find("input.remain"));
|
json["remains"] = _elemToJson(form.find("input.remain"));
|
||||||
|
json["token"] = "'.currentToken().'";
|
||||||
if (imgId != null) {
|
if (imgId != null) {
|
||||||
json["imgClicked"] = imgId;
|
json["imgClicked"] = imgId;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user