From 7a64ced5c9e117f6820baa88d101466de8838b8b Mon Sep 17 00:00:00 2001 From: alextselegidis Date: Thu, 18 Nov 2021 07:35:14 +0100 Subject: [PATCH] All the AJAX URLs now point to the new Booking controller --- assets/js/frontend_book_api.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/frontend_book_api.js b/assets/js/frontend_book_api.js index 2dee2ba0..c660bd64 100755 --- a/assets/js/frontend_book_api.js +++ b/assets/js/frontend_book_api.js @@ -54,7 +54,7 @@ window.FrontendBookApi = window.FrontendBookApi || {}; var appointmentId = FrontendBook.manageMode ? GlobalVariables.appointmentData.id : null; // Make ajax post request and get the available hours. - var url = GlobalVariables.baseUrl + '/index.php/appointments/ajax_get_available_hours'; + var url = GlobalVariables.baseUrl + '/index.php/booking/ajax_get_available_hours'; var data = { csrfToken: GlobalVariables.csrfToken, @@ -173,7 +173,7 @@ window.FrontendBookApi = window.FrontendBookApi || {}; data.exclude_appointment_id = GlobalVariables.appointmentData.id; } - var url = GlobalVariables.baseUrl + '/index.php/appointments/ajax_register_appointment'; + var url = GlobalVariables.baseUrl + '/index.php/booking/ajax_register_appointment'; var $layer = $('
'); @@ -242,7 +242,7 @@ window.FrontendBookApi = window.FrontendBookApi || {}; var appointmentId = FrontendBook.manageMode ? GlobalVariables.appointmentData.id : null; - var url = GlobalVariables.baseUrl + '/index.php/appointments/ajax_get_unavailable_dates'; + var url = GlobalVariables.baseUrl + '/index.php/booking/ajax_get_unavailable_dates'; var data = { provider_id: providerId,