mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
[WebUI] Add refresh dialog for language change
This commit is contained in:
parent
2984e2dc5d
commit
bf3d6ae24b
1 changed files with 15 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue