summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Churchill <damoxc@gmail.com>2011-10-05 01:54:33 +0100
committerDamien Churchill <damoxc@gmail.com>2011-10-05 01:54:33 +0100
commit4ab5c6d9dee9f7b33fe395ec0a78a0a4ad9b92ad (patch)
treeaa965815b2a71b02793ee74c3fc202253232325c
parentf53dc5faafb1f951ff73da412fae5c2926a4c9ca (diff)
downloaddeluge-4ab5c6d9dee9f7b33fe395ec0a78a0a4ad9b92ad.tar.gz
deluge-4ab5c6d9dee9f7b33fe395ec0a78a0a4ad9b92ad.tar.bz2
deluge-4ab5c6d9dee9f7b33fe395ec0a78a0a4ad9b92ad.zip
web: fix selecting the active tab
Fix selecting the active tab in the details panel, it seems that the activeTab property wasn't working so explicitly call setActiveTab after adding in the various panels.
-rw-r--r--deluge/ui/web/js/deluge-all/details/DetailsPanel.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/ui/web/js/deluge-all/details/DetailsPanel.js b/deluge/ui/web/js/deluge-all/details/DetailsPanel.js
index e90200730..6e0c7cc44 100644
--- a/deluge/ui/web/js/deluge-all/details/DetailsPanel.js
+++ b/deluge/ui/web/js/deluge-all/details/DetailsPanel.js
@@ -43,7 +43,6 @@ Ext.define('Deluge.details.DetailsPanel', {
minSize: 100,
collapsible: true,
margins: '0 5 5 5',
- activeTab: 0,
initComponent: function() {
this.callParent(arguments);
@@ -52,6 +51,7 @@ Ext.define('Deluge.details.DetailsPanel', {
this.add(Ext.create('Deluge.details.FilesTab'));
this.add(Ext.create('Deluge.details.PeersTab'));
this.add(Ext.create('Deluge.details.OptionsTab'));
+ this.setActiveTab(0);
},
clear: function() {