mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 12:34:43 +00:00
[WebUI] Add refresh dialog for language change
This commit is contained in:
parent
2984e2dc5d
commit
bf3d6ae24b
@ -172,6 +172,21 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, {
|
||||
for (var key in deluge.config) {
|
||||
deluge.config[key] = this.optionsManager.get(key);
|
||||
}
|
||||
if ('language' in changed) {
|
||||
Ext.Msg.show({
|
||||
title: _('WebUI Language Changed'),
|
||||
msg: _('Do you want to refresh the page now to use the new language?'),
|
||||
buttons: {
|
||||
yes: _('Refresh'),
|
||||
no: _('Close'),
|
||||
},
|
||||
multiline : false,
|
||||
fn: function(btnText) {
|
||||
if(btnText === 'yes') location.reload();
|
||||
},
|
||||
icon: Ext.MessageBox.QUESTION
|
||||
});
|
||||
}
|
||||
}
|
||||
if (this.oldPassword.getValue() || this.newPassword.getValue()) {
|
||||
this.onPasswordChange();
|
||||
|
Loading…
x
Reference in New Issue
Block a user