remove preferences dialog before locale reload
This commit is contained in:
parent
1fc9b2a025
commit
48985985bf
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue