Author: damoxc
Revision: 4926
Log:
correctly render the columns in the tree
Diff:
Modified: trunk/deluge/ui/web/js/deluge-add.js
===================================================================
--- trunk/deluge/ui/web/js/deluge-add.js 2009-03-23 22:32:48 UTC (rev
4925)
+++ trunk/deluge/ui/web/js/deluge-add.js 2009-03-23 22:49:31 UTC (rev
4926)
@@ -52,18 +52,18 @@
$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: '<input
type="checkbox" />',
filename: file,
- size: item[0],
+ size: fsize(item[0]),
leaf: true,
- text: file
+ uiProvider:
Ext.tree.ColumnNodeUI
}));
}
});
@@ -90,15 +90,15 @@
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'),
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---