fade after set

This commit is contained in:
j 2023-08-12 16:30:51 +02:00
parent 8e0fe20c30
commit 6d7e2192fd

View file

@ -218,8 +218,10 @@ pandora.ui.home = function() {
click: function() { click: function() {
var value = "tr" var value = "tr"
pandora.UI.set({locale: value}); pandora.UI.set({locale: value});
pandora.setLocale(value, pandora.$ui.appPanel.reload); pandora.setLocale(value, () = {
pandora.$ui.appPanel.reload()
that.fadeOutScreen(); that.fadeOutScreen();
};
} }
}), }),
@ -234,8 +236,10 @@ pandora.ui.home = function() {
click: function() { click: function() {
var value = "en" var value = "en"
pandora.UI.set({locale: value}); pandora.UI.set({locale: value});
pandora.setLocale(value, pandora.$ui.appPanel.reload); pandora.setLocale(value, () => {
pandora.$ui.appPanel.reload()
that.fadeOutScreen(); that.fadeOutScreen();
});
} }
}), }),