Fixed csrfToken problem with ajax_save_appointment request
This commit is contained in:
parent
ad8c9b6522
commit
ecbe5600df
1 changed files with 4 additions and 3 deletions
|
@ -1268,9 +1268,10 @@ var BackendCalendar = {
|
||||||
saveAppointment: function(appointment, customer, successCallback, errorCallback) {
|
saveAppointment: function(appointment, customer, successCallback, errorCallback) {
|
||||||
var postUrl = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_appointment';
|
var postUrl = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_appointment';
|
||||||
|
|
||||||
var postData = {};
|
var postData = {
|
||||||
|
'csrfToken': GlobalVariables.csrfToken,
|
||||||
postData['appointment_data'] = JSON.stringify(appointment);
|
'appointment_data': JSON.stringify(appointment)
|
||||||
|
};
|
||||||
|
|
||||||
if (customer !== undefined) {
|
if (customer !== undefined) {
|
||||||
postData['customer_data'] = JSON.stringify(customer);
|
postData['customer_data'] = JSON.stringify(customer);
|
||||||
|
|
Loading…
Reference in a new issue