From 8760491f35eb4665c29c0187d33e22b55cafa49c Mon Sep 17 00:00:00 2001 From: j Date: Sat, 12 Aug 2023 16:37:07 +0200 Subject: [PATCH] fix en --- static/js/home.bakma.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/static/js/home.bakma.js b/static/js/home.bakma.js index b3a28c2..906aaf1 100644 --- a/static/js/home.bakma.js +++ b/static/js/home.bakma.js @@ -217,7 +217,11 @@ pandora.ui.home = function() { .bindEvent({ click: function() { var value = "tr" - pandora.UI.set({locale: value}); + pandora.UI.set({ + locale: value, + page: pandora.user.ui.page == 'home' ? '' : pandora.user.ui.page, + section: 'items' + }); pandora.setLocale(value, () => { pandora.$ui.appPanel.reload() that.fadeOutScreen(); @@ -235,7 +239,11 @@ pandora.ui.home = function() { .bindEvent({ click: function() { var value = "en" - pandora.UI.set({locale: value}); + pandora.UI.set({ + locale: value, + page: pandora.user.ui.page == 'home' ? '' : pandora.user.ui.page, + section: 'items' + }); pandora.setLocale(value, () => { pandora.$ui.appPanel.reload() that.fadeOutScreen();