Module: deluge
Branch: master
Commit: bf224b0556846d8a71e4064b51686508856bd6bf

Author: Damien Churchill <[email protected]>
Date:   Mon Mar 29 23:43:20 2010 +0100

tidy up the encryption page

---

 .../js/deluge-all/preferences/EncryptionPage.js    |   17 ++++++++---------
 1 files 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 3400d0d..591e57f 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'

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to