summaryrefslogtreecommitdiffstats
path: root/deluge/ui/web/js/deluge-all/Sidebar.js
diff options
context:
space:
mode:
Diffstat (limited to 'deluge/ui/web/js/deluge-all/Sidebar.js')
-rw-r--r--deluge/ui/web/js/deluge-all/Sidebar.js31
1 files changed, 13 insertions, 18 deletions
diff --git a/deluge/ui/web/js/deluge-all/Sidebar.js b/deluge/ui/web/js/deluge-all/Sidebar.js
index 12f3c9347..7a0984135 100644
--- a/deluge/ui/web/js/deluge-all/Sidebar.js
+++ b/deluge/ui/web/js/deluge-all/Sidebar.js
@@ -40,7 +40,19 @@
* @version 1.3
*/
Ext.define('Deluge.Sidebar', {
- extend: 'Ext.Panel',
+ extend: 'Ext.panel.Panel',
+
+ id: 'sidebar',
+ region: 'west',
+ cls: 'deluge-sidebar',
+ title: _('Filters'),
+ layout: 'accordion',
+ split: true,
+ width: 200,
+ minSize: 175,
+ collapsible: true,
+ margins: '5 0 0 5',
+ cmargins: '5 0 0 5',
// private
panels: {},
@@ -48,23 +60,6 @@ Ext.define('Deluge.Sidebar', {
// private
selected: null,
- constructor: function(config) {
- config = Ext.apply({
- id: 'sidebar',
- region: 'west',
- cls: 'deluge-sidebar',
- title: _('Filters'),
- layout: 'accordion',
- split: true,
- width: 200,
- minSize: 175,
- collapsible: true,
- margins: '5 0 0 5',
- cmargins: '5 0 0 5'
- }, config);
- this.callParent(arguments);
- },
-
// private
initComponent: function() {
this.callParent(arguments);