Moved scripts inside the script section
This commit is contained in:
parent
a95df871b9
commit
530422608a
1 changed files with 28 additions and 24 deletions
|
@ -9,30 +9,6 @@
|
||||||
|
|
||||||
<?php section('content') ?>
|
<?php section('content') ?>
|
||||||
|
|
||||||
<script src="<?= asset_url('assets/vendor/jquery-ui-timepicker-addon/jquery-ui-timepicker-addon.min.js') ?>"></script>
|
|
||||||
<script src="<?= asset_url('assets/js/pages/backend_customers_helper.js') ?>"></script>
|
|
||||||
<script src="<?= asset_url('assets/js/pages/backend_customers.js') ?>"></script>
|
|
||||||
<script>
|
|
||||||
var GlobalVariables = {
|
|
||||||
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
|
||||||
baseUrl: <?= json_encode(config('base_url')) ?>,
|
|
||||||
dateFormat: <?= json_encode(setting('date_format')) ?>,
|
|
||||||
timeFormat: <?= json_encode(setting('time_format')) ?>,
|
|
||||||
timezones: <?= json_encode($timezones) ?>,
|
|
||||||
user: {
|
|
||||||
id: <?= session('user_id') ?>,
|
|
||||||
email: <?= json_encode(session('user_email')) ?>,
|
|
||||||
timezone: <?= json_encode(session('timezone')) ?>,
|
|
||||||
role_slug: <?= json_encode(session('role_slug')) ?>,
|
|
||||||
privileges: <?= json_encode($privileges) ?>
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
$(function () {
|
|
||||||
BackendCustomers.initialize(true);
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<div class="container-fluid backend-page" id="customers-page">
|
<div class="container-fluid backend-page" id="customers-page">
|
||||||
<div class="row" id="customers">
|
<div class="row" id="customers">
|
||||||
<div id="filter-customers" class="filter-records col col-12 col-md-5">
|
<div id="filter-customers" class="filter-records col col-12 col-md-5">
|
||||||
|
@ -193,3 +169,31 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php section('content') ?>
|
<?php section('content') ?>
|
||||||
|
|
||||||
|
<?php section('script') ?>
|
||||||
|
|
||||||
|
<script src="<?= asset_url('assets/vendor/jquery-ui-timepicker-addon/jquery-ui-timepicker-addon.min.js') ?>"></script>
|
||||||
|
<script src="<?= asset_url('assets/js/pages/backend_customers_helper.js') ?>"></script>
|
||||||
|
<script src="<?= asset_url('assets/js/pages/backend_customers.js') ?>"></script>
|
||||||
|
<script>
|
||||||
|
var GlobalVariables = {
|
||||||
|
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||||
|
baseUrl: <?= json_encode(config('base_url')) ?>,
|
||||||
|
dateFormat: <?= json_encode(setting('date_format')) ?>,
|
||||||
|
timeFormat: <?= json_encode(setting('time_format')) ?>,
|
||||||
|
timezones: <?= json_encode($timezones) ?>,
|
||||||
|
user: {
|
||||||
|
id: <?= session('user_id') ?>,
|
||||||
|
email: <?= json_encode(session('user_email')) ?>,
|
||||||
|
timezone: <?= json_encode(session('timezone')) ?>,
|
||||||
|
role_slug: <?= json_encode(session('role_slug')) ?>,
|
||||||
|
privileges: <?= json_encode($privileges) ?>
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
BackendCustomers.initialize(true);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<?php section('script') ?>
|
||||||
|
|
Loading…
Reference in a new issue