tidy up the encryption page
This commit is contained in:
parent
79e62e6069
commit
bf224b0556
|
@ -36,14 +36,9 @@ Ext.namespace('Deluge.preferences');
|
||||||
* @extends Ext.form.FormPanel
|
* @extends Ext.form.FormPanel
|
||||||
*/
|
*/
|
||||||
Deluge.preferences.Encryption = Ext.extend(Ext.form.FormPanel, {
|
Deluge.preferences.Encryption = Ext.extend(Ext.form.FormPanel, {
|
||||||
constructor: function(config) {
|
|
||||||
config = Ext.apply({
|
|
||||||
border: false,
|
border: false,
|
||||||
title: _('Encryption'),
|
title: _('Encryption'),
|
||||||
layout: 'form'
|
|
||||||
}, config);
|
|
||||||
Deluge.preferences.Encryption.superclass.constructor.call(this, config);
|
|
||||||
},
|
|
||||||
|
|
||||||
initComponent: function() {
|
initComponent: function() {
|
||||||
Deluge.preferences.Encryption.superclass.initComponent.call(this);
|
Deluge.preferences.Encryption.superclass.initComponent.call(this);
|
||||||
|
@ -55,7 +50,8 @@ Deluge.preferences.Encryption = Ext.extend(Ext.form.FormPanel, {
|
||||||
border: false,
|
border: false,
|
||||||
title: _('Settings'),
|
title: _('Settings'),
|
||||||
autoHeight: true,
|
autoHeight: true,
|
||||||
defaultType: 'combo'
|
defaultType: 'combo',
|
||||||
|
width: 300
|
||||||
});
|
});
|
||||||
optMan.bind('enc_in_policy', fieldset.add({
|
optMan.bind('enc_in_policy', fieldset.add({
|
||||||
fieldLabel: _('Inbound'),
|
fieldLabel: _('Inbound'),
|
||||||
|
@ -69,6 +65,7 @@ Deluge.preferences.Encryption = Ext.extend(Ext.form.FormPanel, {
|
||||||
[2, _('Disabled')]
|
[2, _('Disabled')]
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
|
editable: false,
|
||||||
triggerAction: 'all',
|
triggerAction: 'all',
|
||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
displayField: 'text'
|
displayField: 'text'
|
||||||
|
@ -85,6 +82,7 @@ Deluge.preferences.Encryption = Ext.extend(Ext.form.FormPanel, {
|
||||||
[2, _('Disabled')]
|
[2, _('Disabled')]
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
|
editable: false,
|
||||||
triggerAction: 'all',
|
triggerAction: 'all',
|
||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
displayField: 'text'
|
displayField: 'text'
|
||||||
|
@ -101,6 +99,7 @@ Deluge.preferences.Encryption = Ext.extend(Ext.form.FormPanel, {
|
||||||
[2, _('Either')]
|
[2, _('Either')]
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
|
editable: false,
|
||||||
triggerAction: 'all',
|
triggerAction: 'all',
|
||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
displayField: 'text'
|
displayField: 'text'
|
||||||
|
|
Loading…
Reference in New Issue