Loaded scripts from the appointments controller

This commit is contained in:
alextselegidis 2021-11-12 17:30:09 +01:00
parent 2d1c7c0f7a
commit 1103db92df
2 changed files with 9 additions and 9 deletions

View file

@ -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')
]
]);
}

View file

@ -38,11 +38,6 @@
<?php endif ?>
</div>
<script src="<?= asset_url('assets/vendor/datejs/date.min.js') ?>"></script>
<script src="<?= asset_url('assets/vendor/moment/moment.min.js') ?>"></script>
<script src="<?= asset_url('assets/vendor/moment-timezone/moment-timezone-with-data.min.js') ?>"></script>
<script src="https://apis.google.com/js/client.js"></script>
<script>
var GlobalVariables = {
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
@ -56,6 +51,3 @@
googleApiScope: 'https://www.googleapis.com/auth/calendar'
};
</script>
<script src="<?= asset_url('assets/js/frontend_book_success.js') ?>"></script>
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>