From 63c67b69254e3e2003db8994ac78eff4f016948f Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 30 Mar 2009 21:45:40 +0000 Subject: [PATCH] use the "checked" config option to add the checkbox to the tree disable animation remove the enabled column --- deluge/ui/web/js/deluge-add.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/deluge/ui/web/js/deluge-add.js b/deluge/ui/web/js/deluge-add.js index 28c356e2c..e027042e4 100644 --- a/deluge/ui/web/js/deluge-add.js +++ b/deluge/ui/web/js/deluge-add.js @@ -57,17 +57,12 @@ Deluge.Add = { walk(item, child); parent.appendChild(child); } else { - if (item[1]) { - var checkbox = ''; - } else { - var checkbox = ''; - } - var test = item[1]; parent.appendChild(new Ext.tree.TreeNode({ - enabled: checkbox, filename: file, size: fsize(item[0]), leaf: true, + checked: item[1], + iconCls: 'x-deluge-add-file', uiProvider: Ext.tree.ColumnNodeUI })); } @@ -97,11 +92,9 @@ Deluge.Add.Files = new Ext.tree.ColumnTree({ autoScroll: true, height: 170, border: false, + animate: false, columns: [{ - width: 70, - dataIndex: 'enabled' - },{ header: _('Filename'), width: 200, dataIndex: 'filename' @@ -111,7 +104,7 @@ Deluge.Add.Files = new Ext.tree.ColumnTree({ dataIndex: 'size' }], - root: new Ext.tree.TreeNode({ + root: new Ext.tree.AsyncTreeNode({ text: 'Files' }) })