mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 16:02:54 +03:00
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) {
|
||||
var postUrl = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_appointment';
|
||||
|
||||
var postData = {};
|
||||
|
||||
postData['appointment_data'] = JSON.stringify(appointment);
|
||||
var postData = {
|
||||
'csrfToken': GlobalVariables.csrfToken,
|
||||
'appointment_data': JSON.stringify(appointment)
|
||||
};
|
||||
|
||||
if (customer !== undefined) {
|
||||
postData['customer_data'] = JSON.stringify(customer);
|
||||
|
|
Loading…
Reference in a new issue