mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-27 03:36:16 +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) {
|
for (var key in deluge.config) {
|
||||||
deluge.config[key] = this.optionsManager.get(key);
|
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()) {
|
if (this.oldPassword.getValue() || this.newPassword.getValue()) {
|
||||||
this.onPasswordChange();
|
this.onPasswordChange();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user