From bf224b0556846d8a71e4064b51686508856bd6bf Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 29 Mar 2010 23:43:20 +0100 Subject: [PATCH] tidy up the encryption page --- .../js/deluge-all/preferences/EncryptionPage.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/preferences/EncryptionPage.js b/deluge/ui/web/js/deluge-all/preferences/EncryptionPage.js index 3400d0d39..591e57fdd 100644 --- a/deluge/ui/web/js/deluge-all/preferences/EncryptionPage.js +++ b/deluge/ui/web/js/deluge-all/preferences/EncryptionPage.js @@ -36,14 +36,9 @@ Ext.namespace('Deluge.preferences'); * @extends Ext.form.FormPanel */ Deluge.preferences.Encryption = Ext.extend(Ext.form.FormPanel, { - constructor: function(config) { - config = Ext.apply({ - border: false, - title: _('Encryption'), - layout: 'form' - }, config); - Deluge.preferences.Encryption.superclass.constructor.call(this, config); - }, + + border: false, + title: _('Encryption'), initComponent: function() { Deluge.preferences.Encryption.superclass.initComponent.call(this); @@ -55,7 +50,8 @@ Deluge.preferences.Encryption = Ext.extend(Ext.form.FormPanel, { border: false, title: _('Settings'), autoHeight: true, - defaultType: 'combo' + defaultType: 'combo', + width: 300 }); optMan.bind('enc_in_policy', fieldset.add({ fieldLabel: _('Inbound'), @@ -69,6 +65,7 @@ Deluge.preferences.Encryption = Ext.extend(Ext.form.FormPanel, { [2, _('Disabled')] ] }), + editable: false, triggerAction: 'all', valueField: 'id', displayField: 'text' @@ -85,6 +82,7 @@ Deluge.preferences.Encryption = Ext.extend(Ext.form.FormPanel, { [2, _('Disabled')] ] }), + editable: false, triggerAction: 'all', valueField: 'id', displayField: 'text' @@ -101,6 +99,7 @@ Deluge.preferences.Encryption = Ext.extend(Ext.form.FormPanel, { [2, _('Either')] ] }), + editable: false, triggerAction: 'all', valueField: 'id', displayField: 'text'