Moved scripts to the script slot
This commit is contained in:
parent
16863bcf5b
commit
41635413a1
1 changed files with 27 additions and 23 deletions
|
@ -9,29 +9,6 @@
|
|||
|
||||
<?php section('content') ?>
|
||||
|
||||
<script src="<?= asset_url('assets/js/pages/backend_services_helper.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/pages/backend_services.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 () {
|
||||
BackendServices.initialize(true);
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="container-fluid backend-page" id="services-page">
|
||||
<div class="row" id="services">
|
||||
<div id="filter-services" class="filter-records col col-12 col-md-5">
|
||||
|
@ -174,3 +151,30 @@
|
|||
</div>
|
||||
|
||||
<?php section('content') ?>
|
||||
|
||||
<?php section('scripts') ?>
|
||||
|
||||
<script src="<?= asset_url('assets/js/pages/backend_services_helper.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/pages/backend_services.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 () {
|
||||
BackendServices.initialize(true);
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php section('scripts') ?>
|
||||
|
|
Loading…
Reference in a new issue