Update the usage of the localization http client across all layouts and pages

This commit is contained in:
Alex Tselegidis 2022-03-28 08:33:45 +02:00
parent 8f66376b74
commit 942cb3d46f
5 changed files with 5 additions and 1 deletions

View file

@ -54,6 +54,7 @@
<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/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_lang_script') ?>

View file

@ -53,6 +53,7 @@
<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/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_lang_script') ?>

View file

@ -72,6 +72,7 @@
<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/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_lang_script') ?>

View file

@ -59,6 +59,7 @@
<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/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_lang_script') ?>

View file

@ -64,7 +64,7 @@ window.App.Utils.Lang = (function () {
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', () => {