mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 17:03:27 +03:00
Update the usage of the localization http client across all layouts and pages
This commit is contained in:
parent
8f66376b74
commit
942cb3d46f
5 changed files with 5 additions and 1 deletions
|
@ -54,6 +54,7 @@
|
||||||
<script src="<?= asset_url('assets/js/utils/validation.js') ?>"></script>
|
<script src="<?= asset_url('assets/js/utils/validation.js') ?>"></script>
|
||||||
<script src="<?= asset_url('assets/js/layouts/account_layout.js') ?>"></script>
|
<script src="<?= asset_url('assets/js/layouts/account_layout.js') ?>"></script>
|
||||||
<script src="<?= asset_url('assets/js/http/account_http_client.js') ?>"></script>
|
<script src="<?= asset_url('assets/js/http/account_http_client.js') ?>"></script>
|
||||||
|
<script src="<?= asset_url('assets/js/http/localization_http_client.js') ?>"></script>
|
||||||
|
|
||||||
<?php component('js_vars_script') ?>
|
<?php component('js_vars_script') ?>
|
||||||
<?php component('js_lang_script') ?>
|
<?php component('js_lang_script') ?>
|
||||||
|
|
|
@ -53,6 +53,7 @@
|
||||||
<script src="<?= asset_url('assets/js/utils/url.js') ?>"></script>
|
<script src="<?= asset_url('assets/js/utils/url.js') ?>"></script>
|
||||||
<script src="<?= asset_url('assets/js/utils/validation.js') ?>"></script>
|
<script src="<?= asset_url('assets/js/utils/validation.js') ?>"></script>
|
||||||
<script src="<?= asset_url('assets/js/layouts/backend_layout.js') ?>"></script>
|
<script src="<?= asset_url('assets/js/layouts/backend_layout.js') ?>"></script>
|
||||||
|
<script src="<?= asset_url('assets/js/http/localization_http_client.js') ?>"></script>
|
||||||
|
|
||||||
<?php component('js_vars_script') ?>
|
<?php component('js_vars_script') ?>
|
||||||
<?php component('js_lang_script') ?>
|
<?php component('js_lang_script') ?>
|
||||||
|
|
|
@ -72,6 +72,7 @@
|
||||||
<script src="<?= asset_url('assets/js/utils/url.js') ?>"></script>
|
<script src="<?= asset_url('assets/js/utils/url.js') ?>"></script>
|
||||||
<script src="<?= asset_url('assets/js/utils/validation.js') ?>"></script>
|
<script src="<?= asset_url('assets/js/utils/validation.js') ?>"></script>
|
||||||
<script src="<?= asset_url('assets/js/layouts/booking_layout.js') ?>"></script>
|
<script src="<?= asset_url('assets/js/layouts/booking_layout.js') ?>"></script>
|
||||||
|
<script src="<?= asset_url('assets/js/http/localization_http_client.js') ?>"></script>
|
||||||
|
|
||||||
<?php component('js_vars_script') ?>
|
<?php component('js_vars_script') ?>
|
||||||
<?php component('js_lang_script') ?>
|
<?php component('js_lang_script') ?>
|
||||||
|
|
|
@ -59,6 +59,7 @@
|
||||||
<script src="<?= asset_url('assets/js/utils/url.js') ?>"></script>
|
<script src="<?= asset_url('assets/js/utils/url.js') ?>"></script>
|
||||||
<script src="<?= asset_url('assets/js/utils/validation.js') ?>"></script>
|
<script src="<?= asset_url('assets/js/utils/validation.js') ?>"></script>
|
||||||
<script src="<?= asset_url('assets/js/layouts/message_layout.js') ?>"></script>
|
<script src="<?= asset_url('assets/js/layouts/message_layout.js') ?>"></script>
|
||||||
|
<script src="<?= asset_url('assets/js/http/localization_http_client.js') ?>"></script>
|
||||||
|
|
||||||
<?php component('js_vars_script') ?>
|
<?php component('js_vars_script') ?>
|
||||||
<?php component('js_lang_script') ?>
|
<?php component('js_lang_script') ?>
|
||||||
|
|
|
@ -64,7 +64,7 @@ window.App.Utils.Lang = (function () {
|
||||||
|
|
||||||
const language = $(event.target).data('language');
|
const language = $(event.target).data('language');
|
||||||
|
|
||||||
App.Http.Account.changeLanguage(language).done(() => document.location.reload());
|
App.Http.Localization.changeLanguage(language).done(() => document.location.reload());
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on('click', () => {
|
$(document).on('click', () => {
|
||||||
|
|
Loading…
Reference in a new issue