From 1103db92df6f5da9ab9daa882c21b41f34f98da6 Mon Sep 17 00:00:00 2001 From: alextselegidis Date: Fri, 12 Nov 2021 17:30:09 +0100 Subject: [PATCH] Loaded scripts from the appointments controller --- application/controllers/Appointments.php | 10 +++++++++- .../views/pages/booking/booking_success_page.php | 8 -------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/application/controllers/Appointments.php b/application/controllers/Appointments.php index 1485d8c5..8a9f4466 100755 --- a/application/controllers/Appointments.php +++ b/application/controllers/Appointments.php @@ -291,7 +291,15 @@ class Appointments extends EA_Controller { ], 'service_data' => $service, 'company_name' => $company_name, - 'exceptions' => $exceptions + 'exceptions' => $exceptions, + 'scripts' => [ + asset_url('assets/vendor/datejs/date.min.js'), + asset_url('assets/vendor/moment/moment.min.js'), + asset_url('assets/vendor/moment-timezone/moment-timezone-with-data.min.js'), + 'https://apis.google.com/js/client.js', + asset_url('assets/js/frontend_book_success.js'), + asset_url('assets/js/general_functions.js') + ] ]); } diff --git a/application/views/pages/booking/booking_success_page.php b/application/views/pages/booking/booking_success_page.php index fe344caf..f948421e 100755 --- a/application/views/pages/booking/booking_success_page.php +++ b/application/views/pages/booking/booking_success_page.php @@ -38,11 +38,6 @@ - - - - - - - -