Reformatting for GlobalVariables definition.
This commit is contained in:
parent
28afe4d1c7
commit
20cb8b3a01
9 changed files with 99 additions and 99 deletions
|
@ -68,14 +68,14 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var GlobalVariables = {
|
var GlobalVariables = {
|
||||||
'csrfToken' : <?= json_encode($this->security->get_csrf_hash()) ?>,
|
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||||
'appointmentData' : <?= json_encode($appointment_data) ?>,
|
appointmentData: <?= json_encode($appointment_data) ?>,
|
||||||
'providerData' : <?= json_encode($provider_data) ?>,
|
providerData: <?= json_encode($provider_data) ?>,
|
||||||
'serviceData' : <?= json_encode($service_data) ?>,
|
serviceData: <?= json_encode($service_data) ?>,
|
||||||
'companyName' : <?= json_encode($company_name) ?>,
|
companyName: <?= json_encode($company_name) ?>,
|
||||||
'googleApiKey' : <?= json_encode(config('google_api_key')) ?>,
|
googleApiKey: <?= json_encode(config('google_api_key')) ?>,
|
||||||
'googleClientId' : <?= json_encode(config('google_client_id')) ?>,
|
googleClientId: <?= json_encode(config('google_client_id')) ?>,
|
||||||
'googleApiScope' : 'https://www.googleapis.com/auth/calendar'
|
googleApiScope: 'https://www.googleapis.com/auth/calendar'
|
||||||
};
|
};
|
||||||
|
|
||||||
var EALang = <?= json_encode($this->lang->language) ?>;
|
var EALang = <?= json_encode($this->lang->language) ?>;
|
||||||
|
|
|
@ -13,25 +13,25 @@
|
||||||
<script src="<?= asset_url('assets/js/backend_calendar_api.js') ?>"></script>
|
<script src="<?= asset_url('assets/js/backend_calendar_api.js') ?>"></script>
|
||||||
<script>
|
<script>
|
||||||
var GlobalVariables = {
|
var GlobalVariables = {
|
||||||
'csrfToken': <?= json_encode($this->security->get_csrf_hash()) ?>,
|
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||||
'availableProviders': <?= json_encode($available_providers) ?>,
|
availableProviders: <?= json_encode($available_providers) ?>,
|
||||||
'availableServices': <?= json_encode($available_services) ?>,
|
availableServices: <?= json_encode($available_services) ?>,
|
||||||
'baseUrl': <?= json_encode($base_url) ?>,
|
baseUrl: <?= json_encode($base_url) ?>,
|
||||||
'bookAdvanceTimeout': <?= $book_advance_timeout ?>,
|
bookAdvanceTimeout: <?= $book_advance_timeout ?>,
|
||||||
'dateFormat': <?= json_encode($date_format) ?>,
|
dateFormat: <?= json_encode($date_format) ?>,
|
||||||
'timeFormat': <?= json_encode($time_format) ?>,
|
timeFormat: <?= json_encode($time_format) ?>,
|
||||||
'firstWeekday': <?= json_encode($first_weekday) ?>,
|
firstWeekday: <?= json_encode($first_weekday) ?>,
|
||||||
'editAppointment': <?= json_encode($edit_appointment) ?>,
|
editAppointment: <?= json_encode($edit_appointment) ?>,
|
||||||
'customers': <?= json_encode($customers) ?>,
|
customers: <?= json_encode($customers) ?>,
|
||||||
'secretaryProviders': <?= json_encode($secretary_providers) ?>,
|
secretaryProviders: <?= json_encode($secretary_providers) ?>,
|
||||||
'calendarView': <?= json_encode($calendar_view) ?>,
|
calendarView: <?= json_encode($calendar_view) ?>,
|
||||||
'timezones': <?= json_encode($timezones) ?>,
|
timezones: <?= json_encode($timezones) ?>,
|
||||||
'user': {
|
user: {
|
||||||
'id': <?= $user_id ?>,
|
id: <?= $user_id ?>,
|
||||||
'email': <?= json_encode($user_email) ?>,
|
email: <?= json_encode($user_email) ?>,
|
||||||
'timezone': <?= json_encode($timezone) ?>,
|
timezone: <?= json_encode($timezone) ?>,
|
||||||
'role_slug': <?= json_encode($role_slug) ?>,
|
role_slug: <?= json_encode($role_slug) ?>,
|
||||||
'privileges': <?= json_encode($privileges) ?>,
|
privileges: <?= json_encode($privileges) ?>,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -3,21 +3,21 @@
|
||||||
<script src="<?= asset_url('assets/js/backend_customers.js') ?>"></script>
|
<script src="<?= asset_url('assets/js/backend_customers.js') ?>"></script>
|
||||||
<script>
|
<script>
|
||||||
var GlobalVariables = {
|
var GlobalVariables = {
|
||||||
csrfToken : <?= json_encode($this->security->get_csrf_hash()) ?>,
|
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||||
availableProviders : <?= json_encode($available_providers) ?>,
|
availableProviders: <?= json_encode($available_providers) ?>,
|
||||||
availableServices : <?= json_encode($available_services) ?>,
|
availableServices: <?= json_encode($available_services) ?>,
|
||||||
secretaryProviders : <?= json_encode($secretary_providers) ?>,
|
secretaryProviders: <?= json_encode($secretary_providers) ?>,
|
||||||
dateFormat : <?= json_encode($date_format) ?>,
|
dateFormat: <?= json_encode($date_format) ?>,
|
||||||
timeFormat : <?= json_encode($time_format) ?>,
|
timeFormat: <?= json_encode($time_format) ?>,
|
||||||
baseUrl : <?= json_encode($base_url) ?>,
|
baseUrl: <?= json_encode($base_url) ?>,
|
||||||
customers : <?= json_encode($customers) ?>,
|
customers: <?= json_encode($customers) ?>,
|
||||||
timezones : <?= json_encode($timezones) ?>,
|
timezones: <?= json_encode($timezones) ?>,
|
||||||
user : {
|
user : {
|
||||||
id : <?= $user_id ?>,
|
id: <?= $user_id ?>,
|
||||||
email : <?= json_encode($user_email) ?>,
|
email: <?= json_encode($user_email) ?>,
|
||||||
timezone : <?= json_encode($timezone) ?>,
|
timezone: <?= json_encode($timezone) ?>,
|
||||||
role_slug : <?= json_encode($role_slug) ?>,
|
role_slug: <?= json_encode($role_slug) ?>,
|
||||||
privileges : <?= json_encode($privileges) ?>
|
privileges: <?= json_encode($privileges) ?>
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -3,18 +3,18 @@
|
||||||
<script src="<?= asset_url('assets/js/backend_services.js') ?>"></script>
|
<script src="<?= asset_url('assets/js/backend_services.js') ?>"></script>
|
||||||
<script>
|
<script>
|
||||||
var GlobalVariables = {
|
var GlobalVariables = {
|
||||||
csrfToken : <?= json_encode($this->security->get_csrf_hash()) ?>,
|
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||||
baseUrl : <?= json_encode($base_url) ?>,
|
baseUrl: <?= json_encode($base_url) ?>,
|
||||||
dateFormat : <?= json_encode($date_format) ?>,
|
dateFormat: <?= json_encode($date_format) ?>,
|
||||||
timeFormat : <?= json_encode($time_format) ?>,
|
timeFormat: <?= json_encode($time_format) ?>,
|
||||||
services : <?= json_encode($services) ?>,
|
services: <?= json_encode($services) ?>,
|
||||||
categories : <?= json_encode($categories) ?>,
|
categories: <?= json_encode($categories) ?>,
|
||||||
timezones : <?= json_encode($timezones) ?>,
|
timezones: <?= json_encode($timezones) ?>,
|
||||||
user : {
|
user: {
|
||||||
id : <?= $user_id ?>,
|
id: <?= $user_id ?>,
|
||||||
email : <?= json_encode($user_email) ?>,
|
email: <?= json_encode($user_email) ?>,
|
||||||
timezone : <?= json_encode($timezone) ?>,
|
timezone: <?= json_encode($timezone) ?>,
|
||||||
role_slug : <?= json_encode($role_slug) ?>,
|
role_slug: <?= json_encode($role_slug) ?>,
|
||||||
privileges: <?= json_encode($privileges) ?>
|
privileges: <?= json_encode($privileges) ?>
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,23 +6,23 @@
|
||||||
<script src="<?= asset_url('assets/ext/jquery-jeditable/jquery.jeditable.min.js') ?>"></script>
|
<script src="<?= asset_url('assets/ext/jquery-jeditable/jquery.jeditable.min.js') ?>"></script>
|
||||||
<script>
|
<script>
|
||||||
var GlobalVariables = {
|
var GlobalVariables = {
|
||||||
'csrfToken' : <?= json_encode($this->security->get_csrf_hash()) ?>,
|
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||||
'baseUrl' : <?= json_encode($base_url) ?>,
|
baseUrl: <?= json_encode($base_url) ?>,
|
||||||
'dateFormat' : <?= json_encode($date_format) ?>,
|
dateFormat: <?= json_encode($date_format) ?>,
|
||||||
'firstWeekday' : <?= json_encode($first_weekday); ?>,
|
firstWeekday: <?= json_encode($first_weekday); ?>,
|
||||||
'timeFormat' : <?= json_encode($time_format) ?>,
|
timeFormat: <?= json_encode($time_format) ?>,
|
||||||
'userSlug' : <?= json_encode($role_slug) ?>,
|
userSlug: <?= json_encode($role_slug) ?>,
|
||||||
'timezones' : <?= json_encode($timezones) ?>,
|
timezones: <?= json_encode($timezones) ?>,
|
||||||
'settings' : {
|
settings: {
|
||||||
'system' : <?= json_encode($system_settings) ?>,
|
system: <?= json_encode($system_settings) ?>,
|
||||||
'user' : <?= json_encode($user_settings) ?>
|
user: <?= json_encode($user_settings) ?>
|
||||||
},
|
},
|
||||||
'user' : {
|
user: {
|
||||||
'id' : <?= $user_id ?>,
|
id: <?= $user_id ?>,
|
||||||
'email' : <?= json_encode($user_email) ?>,
|
email: <?= json_encode($user_email) ?>,
|
||||||
'timezone' : <?= json_encode($timezone) ?>,
|
timezone: <?= json_encode($timezone) ?>,
|
||||||
'role_slug' : <?= json_encode($role_slug) ?>,
|
role_slug: <?= json_encode($role_slug) ?>,
|
||||||
'privileges': <?= json_encode($privileges) ?>
|
privileges: <?= json_encode($privileges) ?>
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -7,24 +7,24 @@
|
||||||
<script src="<?= asset_url('assets/ext/jquery-jeditable/jquery.jeditable.min.js') ?>"></script>
|
<script src="<?= asset_url('assets/ext/jquery-jeditable/jquery.jeditable.min.js') ?>"></script>
|
||||||
<script>
|
<script>
|
||||||
var GlobalVariables = {
|
var GlobalVariables = {
|
||||||
csrfToken : <?= json_encode($this->security->get_csrf_hash()) ?>,
|
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||||
baseUrl : <?= json_encode($base_url) ?>,
|
baseUrl: <?= json_encode($base_url) ?>,
|
||||||
dateFormat : <?= json_encode($date_format) ?>,
|
dateFormat: <?= json_encode($date_format) ?>,
|
||||||
firstWeekday : <?= json_encode($first_weekday); ?>,
|
firstWeekday: <?= json_encode($first_weekday); ?>,
|
||||||
timeFormat : <?= json_encode($time_format) ?>,
|
timeFormat: <?= json_encode($time_format) ?>,
|
||||||
admins : <?= json_encode($admins) ?>,
|
admins: <?= json_encode($admins) ?>,
|
||||||
providers : <?= json_encode($providers) ?>,
|
providers: <?= json_encode($providers) ?>,
|
||||||
secretaries : <?= json_encode($secretaries) ?>,
|
secretaries: <?= json_encode($secretaries) ?>,
|
||||||
services : <?= json_encode($services) ?>,
|
services: <?= json_encode($services) ?>,
|
||||||
timezones : <?= json_encode($timezones) ?>,
|
timezones: <?= json_encode($timezones) ?>,
|
||||||
workingPlan : <?= json_encode(json_decode($working_plan)) ?>,
|
workingPlan: <?= json_encode(json_decode($working_plan)) ?>,
|
||||||
extraWorkingPlan : <?= json_encode(json_decode($extra_working_plan)) ?>,
|
extraWorkingPlan: <?= json_encode(json_decode($extra_working_plan)) ?>,
|
||||||
user : {
|
user: {
|
||||||
id : <?= $user_id ?>,
|
id: <?= $user_id ?>,
|
||||||
email : <?= json_encode($user_email) ?>,
|
email: <?= json_encode($user_email) ?>,
|
||||||
timezone : <?= json_encode($timezone) ?>,
|
timezone: <?= json_encode($timezone) ?>,
|
||||||
role_slug : <?= json_encode($role_slug) ?>,
|
role_slug: <?= json_encode($role_slug) ?>,
|
||||||
privileges : <?= json_encode($privileges) ?>
|
privileges: <?= json_encode($privileges) ?>
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -171,8 +171,8 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var GlobalVariables = {
|
var GlobalVariables = {
|
||||||
'csrfToken': <?= json_encode($this->security->get_csrf_hash()) ?>,
|
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||||
'baseUrl': <?= json_encode(config('base_url')) ?>
|
baseUrl: <?= json_encode(config('base_url')) ?>
|
||||||
};
|
};
|
||||||
|
|
||||||
var EALang = <?= json_encode($this->lang->language) ?>;
|
var EALang = <?= json_encode($this->lang->language) ?>;
|
||||||
|
|
|
@ -53,10 +53,10 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var GlobalVariables = {
|
var GlobalVariables = {
|
||||||
'csrfToken': <?= json_encode($this->security->get_csrf_hash()) ?>,
|
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||||
'baseUrl': <?= json_encode(config('base_url')) ?>,
|
baseUrl: <?= json_encode(config('base_url')) ?>,
|
||||||
'AJAX_SUCCESS': 'SUCCESS',
|
AJAX_SUCCESS: 'SUCCESS',
|
||||||
'AJAX_FAILURE': 'FAILURE'
|
AJAX_FAILURE: 'FAILURE'
|
||||||
};
|
};
|
||||||
|
|
||||||
var EALang = <?= json_encode($this->lang->language) ?>;
|
var EALang = <?= json_encode($this->lang->language) ?>;
|
||||||
|
|
|
@ -45,11 +45,11 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var GlobalVariables = {
|
var GlobalVariables = {
|
||||||
'csrfToken': <?= json_encode($this->security->get_csrf_hash()) ?>,
|
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
||||||
'baseUrl': <?= json_encode($base_url) ?>,
|
baseUrl: <?= json_encode($base_url) ?>,
|
||||||
'destUrl': <?= json_encode($dest_url) ?>,
|
destUrl: <?= json_encode($dest_url) ?>,
|
||||||
'AJAX_SUCCESS': 'SUCCESS',
|
AJAX_SUCCESS: 'SUCCESS',
|
||||||
'AJAX_FAILURE': 'FAILURE'
|
AJAX_FAILURE: 'FAILURE'
|
||||||
};
|
};
|
||||||
|
|
||||||
var EALang = <?= json_encode($this->lang->language) ?>;
|
var EALang = <?= json_encode($this->lang->language) ?>;
|
||||||
|
|
Loading…
Reference in a new issue