mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-26 09:53:34 +03:00
Replaced base_url use with config helper in GlobalVariables definition.
This commit is contained in:
parent
fb8aea0c3e
commit
6f5ac8c695
2 changed files with 2 additions and 2 deletions
|
@ -172,7 +172,7 @@
|
||||||
<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(config('base_url')) ?>
|
||||||
};
|
};
|
||||||
|
|
||||||
var EALang = <?= json_encode($this->lang->language) ?>;
|
var EALang = <?= json_encode($this->lang->language) ?>;
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
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(config('base_url')) ?>,
|
||||||
'AJAX_SUCCESS': 'SUCCESS',
|
'AJAX_SUCCESS': 'SUCCESS',
|
||||||
'AJAX_FAILURE': 'FAILURE'
|
'AJAX_FAILURE': 'FAILURE'
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue