Loaded scripts from the appointments controller
This commit is contained in:
parent
2d1c7c0f7a
commit
1103db92df
2 changed files with 9 additions and 9 deletions
|
@ -291,7 +291,15 @@ class Appointments extends EA_Controller {
|
||||||
],
|
],
|
||||||
'service_data' => $service,
|
'service_data' => $service,
|
||||||
'company_name' => $company_name,
|
'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')
|
||||||
|
]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,11 +38,6 @@
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</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>
|
<script>
|
||||||
var GlobalVariables = {
|
var GlobalVariables = {
|
||||||
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||||
|
@ -56,6 +51,3 @@
|
||||||
googleApiScope: 'https://www.googleapis.com/auth/calendar'
|
googleApiScope: 'https://www.googleapis.com/auth/calendar'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script src="<?= asset_url('assets/js/frontend_book_success.js') ?>"></script>
|
|
||||||
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
|
|
||||||
|
|
Loading…
Reference in a new issue