From fe83a95041553b4bb1a98b3e1b4eacf861f580e1 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 23 Mar 2009 22:49:31 +0000 Subject: [PATCH] correctly render the columns in the tree --- deluge/ui/web/js/deluge-add.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/deluge/ui/web/js/deluge-add.js b/deluge/ui/web/js/deluge-add.js index 925237f34..f1ac36fc1 100644 --- a/deluge/ui/web/js/deluge-add.js +++ b/deluge/ui/web/js/deluge-add.js @@ -52,18 +52,18 @@ Deluge.Add = { $each(files, function(item, file) { if ($type(item) == 'object') { var child = new Ext.tree.TreeNode({ - filename: file, text: file }); walk(item, child); parent.appendChild(child); } else { + var test = item[1]; parent.appendChild(new Ext.tree.TreeNode({ - enabled: item[1], + enabled: '', filename: file, - size: item[0], + size: fsize(item[0]), leaf: true, - text: file + uiProvider: Ext.tree.ColumnNodeUI })); } }); @@ -90,15 +90,15 @@ Deluge.Add.Files = new Ext.tree.ColumnTree({ layout: 'fit', rootVisible: false, autoScroll: true, - height: 200, + height: 170, border: false, columns: [{ - width: 40, + width: 70, dataIndex: 'enabled' },{ header: _('Filename'), - width: 250, + width: 200, dataIndex: 'filename' },{ header: _('Size'),