From 942cb3d46f0a8c521604011e7d506e5a897f6a8e Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 28 Mar 2022 08:33:45 +0200 Subject: [PATCH] Update the usage of the localization http client across all layouts and pages --- application/views/layouts/account_layout.php | 1 + application/views/layouts/backend_layout.php | 1 + application/views/layouts/booking_layout.php | 1 + application/views/layouts/message_layout.php | 1 + assets/js/utils/lang.js | 2 +- 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/application/views/layouts/account_layout.php b/application/views/layouts/account_layout.php index d5cce764..c991a1b0 100644 --- a/application/views/layouts/account_layout.php +++ b/application/views/layouts/account_layout.php @@ -54,6 +54,7 @@ + diff --git a/application/views/layouts/backend_layout.php b/application/views/layouts/backend_layout.php index d69704de..76022295 100644 --- a/application/views/layouts/backend_layout.php +++ b/application/views/layouts/backend_layout.php @@ -53,6 +53,7 @@ + diff --git a/application/views/layouts/booking_layout.php b/application/views/layouts/booking_layout.php index e5e39a54..3c178226 100644 --- a/application/views/layouts/booking_layout.php +++ b/application/views/layouts/booking_layout.php @@ -72,6 +72,7 @@ + diff --git a/application/views/layouts/message_layout.php b/application/views/layouts/message_layout.php index 036a1a92..a9580cac 100644 --- a/application/views/layouts/message_layout.php +++ b/application/views/layouts/message_layout.php @@ -59,6 +59,7 @@ + diff --git a/assets/js/utils/lang.js b/assets/js/utils/lang.js index 578c9dc0..95e2ef30 100644 --- a/assets/js/utils/lang.js +++ b/assets/js/utils/lang.js @@ -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', () => {