Author: damoxc
Revision: 5583
Log:
build the config panel in the initComponent method
Diff:
Modified: trunk/deluge/ui/web/js/Deluge.Preferences.js
===================================================================
--- trunk/deluge/ui/web/js/Deluge.Preferences.js 2009-07-30 22:04:23 UTC
(rev 5582)
+++ trunk/deluge/ui/web/js/Deluge.Preferences.js 2009-07-30 22:14:37 UTC
(rev 5583)
@@ -68,14 +68,7 @@
cmargins: '5 0 5 5',
width: 120,
collapsible: true
- }, {
- region: 'center',
- header: false,
- layout: 'fit',
- height: 400,
- margins: '5 5 5 5',
- cmargins: '5 5 5 5'
- }]
+ }, ]
}, config);
Ext.deluge.PreferencesWindow.superclass.constructor.call(this, config);
},
@@ -83,7 +76,14 @@
initComponent: function() {
Ext.deluge.PreferencesWindow.superclass.initComponent.call(this);
this.categoriesGrid = this.items.get(0);
- this.configPanel = this.items.get(1);
+ this.configPanel = this.add({
+ region: 'center',
+ header: false,
+ layout: 'fit',
+ height: 400,
+ margins: '5 5 5 5',
+ cmargins: '5 5 5 5'
+ });
this.addButton(_('Close'), this.onClose, this);
this.addButton(_('Apply'), this.onApply, this);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---