remove preferences dialog before locale reload

This commit is contained in:
rolux 2013-08-08 11:12:06 +00:00
parent 1fc9b2a025
commit 48985985bf

View file

@ -132,7 +132,10 @@ pandora.ui.preferencesDialog = function() {
.bindEvent({ .bindEvent({
change: function(data) { change: function(data) {
pandora.UI.set({locale: data.value}); pandora.UI.set({locale: data.value});
pandora.setLocale(data.value, pandora.$ui.appPanel.reload); pandora.setLocale(data.value, function() {
$dialog.remove();
pandora.$ui.appPanel.reload();
});
} }
}) })
] ]