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, () => {