From fca813e2fefc5555e63a5773d5f3a1ca35eb39a2 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 24 Nov 2021 09:23:22 +0100 Subject: [PATCH] Use the calendar controller instead of the backend API --- assets/js/backend_calendar_api.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/js/backend_calendar_api.js b/assets/js/backend_calendar_api.js index 78fe1216..1ce03ae9 100755 --- a/assets/js/backend_calendar_api.js +++ b/assets/js/backend_calendar_api.js @@ -33,7 +33,7 @@ window.BackendCalendarApi = window.BackendCalendarApi || {}; * @param {Function} [errorCallback] Optional, if defined, this function is going to be executed on post failure. */ exports.saveAppointment = function (appointment, customer, successCallback, errorCallback) { - var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_appointment'; + var url = GlobalVariables.baseUrl + '/index.php/calendar/ajax_save_appointment'; var data = { csrfToken: GlobalVariables.csrfToken, @@ -65,7 +65,7 @@ window.BackendCalendarApi = window.BackendCalendarApi || {}; * @param {Function} errorCallback The ajax failure callback function. */ exports.saveUnavailable = function (unavailable, successCallback, errorCallback) { - var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_unavailable'; + var url = GlobalVariables.baseUrl + '/index.php/calendar/ajax_save_unavailable'; var data = { csrfToken: GlobalVariables.csrfToken, @@ -101,7 +101,7 @@ window.BackendCalendarApi = window.BackendCalendarApi || {}; successCallback, errorCallback ) { - var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_working_plan_exception'; + var url = GlobalVariables.baseUrl + '/index.php/calendar/ajax_save_working_plan_exception'; var data = { csrfToken: GlobalVariables.csrfToken, @@ -124,7 +124,7 @@ window.BackendCalendarApi = window.BackendCalendarApi || {}; }; exports.deleteWorkingPlanException = function (date, providerId, successCallback, errorCallback) { - var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_delete_working_plan_exception'; + var url = GlobalVariables.baseUrl + '/index.php/calendar/ajax_delete_working_plan_exception'; var data = { csrfToken: GlobalVariables.csrfToken,