diff --git a/static/js/home.bakma.js b/static/js/home.bakma.js index a316a07..1444fe3 100644 --- a/static/js/home.bakma.js +++ b/static/js/home.bakma.js @@ -218,8 +218,10 @@ pandora.ui.home = function() { click: function() { var value = "tr" pandora.UI.set({locale: value}); - pandora.setLocale(value, pandora.$ui.appPanel.reload); - that.fadeOutScreen(); + pandora.setLocale(value, () = { + pandora.$ui.appPanel.reload() + that.fadeOutScreen(); + }; } }), @@ -234,8 +236,10 @@ pandora.ui.home = function() { click: function() { var value = "en" pandora.UI.set({locale: value}); - pandora.setLocale(value, pandora.$ui.appPanel.reload); - that.fadeOutScreen(); + pandora.setLocale(value, () => { + pandora.$ui.appPanel.reload() + that.fadeOutScreen(); + }); } }),