[WebUI] Use Apply button to change password

This commit is contained in:
Calum Lind 2016-04-25 09:50:17 +01:00
parent 9fbc63e6fb
commit 3b23f69786
1 changed files with 4 additions and 19 deletions

View File

@ -106,29 +106,11 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, {
fieldLabel: _('Confirm:'), fieldLabel: _('Confirm:'),
}); });
var panel = fieldset.add({
xtype: 'panel',
autoHeight: true,
border: false,
width: 310,
bodyStyle: 'padding-left: 110px'
})
panel.add({
xtype: 'button',
text: _('Change Password'),
listeners: {
'click': {
fn: this.onPasswordChange,
scope: this
}
}
});
fieldset = this.add({ fieldset = this.add({
xtype: 'fieldset', xtype: 'fieldset',
border: false, border: false,
title: _('Server'), title: _('Server'),
style: 'padding-top: 3px; margin-bottom: 0px; padding-bottom: 5px', style: 'padding-top: 5px; margin-bottom: 0px; padding-bottom: 5px',
autoHeight: true, autoHeight: true,
labelWidth: 100, labelWidth: 100,
defaultType: 'spinnerfield', defaultType: 'spinnerfield',
@ -191,6 +173,9 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, {
deluge.config[key] = this.optionsManager.get(key); deluge.config[key] = this.optionsManager.get(key);
} }
} }
if (this.oldPassword.getValue() || this.newPassword.getValue()) {
this.onPasswordChange();
}
}, },
onGotConfig: function(config) { onGotConfig: function(config) {