Fix #2261 : WebUI: Proxy settings not being saved
This commit is contained in:
parent
a992d8685f
commit
754035c722
|
@ -65,12 +65,16 @@ Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, {
|
||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
displayField: 'text'
|
displayField: 'text'
|
||||||
});
|
});
|
||||||
|
this.proxyType.on('change', this.onFieldChange, this);
|
||||||
|
this.proxyType.on('select', this.onTypeSelect, this);
|
||||||
|
|
||||||
this.hostname = this.add({
|
this.hostname = this.add({
|
||||||
xtype: 'textfield',
|
xtype: 'textfield',
|
||||||
name: 'hostname',
|
name: 'hostname',
|
||||||
fieldLabel: _('Host'),
|
fieldLabel: _('Host'),
|
||||||
width: 220
|
width: 220
|
||||||
});
|
});
|
||||||
|
this.hostname.on('change', this.onFieldChange, this);
|
||||||
|
|
||||||
this.port = this.add({
|
this.port = this.add({
|
||||||
xtype: 'spinnerfield',
|
xtype: 'spinnerfield',
|
||||||
|
@ -81,6 +85,7 @@ Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, {
|
||||||
minValue: -1,
|
minValue: -1,
|
||||||
maxValue: 99999
|
maxValue: 99999
|
||||||
});
|
});
|
||||||
|
this.port.on('change', this.onFieldChange, this);
|
||||||
|
|
||||||
this.username = this.add({
|
this.username = this.add({
|
||||||
xtype: 'textfield',
|
xtype: 'textfield',
|
||||||
|
@ -88,6 +93,7 @@ Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, {
|
||||||
fieldLabel: _('Username'),
|
fieldLabel: _('Username'),
|
||||||
width: 220
|
width: 220
|
||||||
});
|
});
|
||||||
|
this.username.on('change', this.onFieldChange, this);
|
||||||
|
|
||||||
this.password = this.add({
|
this.password = this.add({
|
||||||
xtype: 'textfield',
|
xtype: 'textfield',
|
||||||
|
@ -96,9 +102,8 @@ Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, {
|
||||||
inputType: 'password',
|
inputType: 'password',
|
||||||
width: 220
|
width: 220
|
||||||
});
|
});
|
||||||
|
this.password.on('change', this.onFieldChange, this);
|
||||||
|
|
||||||
this.proxyType.on('change', this.onFieldChange, this);
|
|
||||||
this.proxyType.on('select', this.onTypeSelect, this);
|
|
||||||
this.setting = false;
|
this.setting = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue