diff --git a/deluge/ui/web/js/deluge-details.js b/deluge/ui/web/js/deluge-details.js index 4d441100e..2cbe72d79 100644 --- a/deluge/ui/web/js/deluge-details.js +++ b/deluge/ui/web/js/deluge-details.js @@ -22,6 +22,12 @@ Copyright: Boston, MA 02110-1301, USA. */ +Deluge.FilesTreeLoader = Ext.extend(Ext.tree.TreeLoader, { + initComponent: function() { + Deluge.FilesTreeLoader.superclass.initComponent.call(this); + }, +}); + Deluge.ProgressBar = Ext.extend(Ext.ProgressBar, { initComponent: function() { Deluge.ProgressBar.superclass.initComponent.call(this); @@ -281,6 +287,12 @@ Deluge.Details.Panel = new Ext.TabPanel({ dataIndex: 'priority' }], + loader: new Deluge.FilesTreeLoader({ + uiProviders: { + 'col': Ext.tree.ColumnNodeUI + } + }), + root: new Ext.tree.AsyncTreeNode({ text:'Tasks' })