From 6fde8de8e5c883db2944abb690fc4001c3d7ff82 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 12 Aug 2023 16:40:12 +0200 Subject: [PATCH] fix language --- static/js/home.bakma.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/static/js/home.bakma.js b/static/js/home.bakma.js index 906aaf1..b592ddd 100644 --- a/static/js/home.bakma.js +++ b/static/js/home.bakma.js @@ -219,7 +219,13 @@ pandora.ui.home = function() { var value = "tr" pandora.UI.set({ locale: value, - page: pandora.user.ui.page == 'home' ? '' : pandora.user.ui.page, + page: '', + find: { + conditions: value === '' + ? [] + : [{key: '*', value: value, operator: '='}], + operator: '&' + }, section: 'items' }); pandora.setLocale(value, () => { @@ -241,7 +247,13 @@ pandora.ui.home = function() { var value = "en" pandora.UI.set({ locale: value, - page: pandora.user.ui.page == 'home' ? '' : pandora.user.ui.page, + page: '', + find: { + conditions: value === '' + ? [] + : [{key: '*', value: value, operator: '='}], + operator: '&' + }, section: 'items' }); pandora.setLocale(value, () => {