Author: damoxc
Revision: 4937
Log:
use the "checked" config option to add the checkbox to the tree
disable animation
remove the enabled column
Diff:
Modified: trunk/deluge/ui/web/js/deluge-add.js
===================================================================
--- trunk/deluge/ui/web/js/deluge-add.js 2009-03-30 21:39:40 UTC (rev
4936)
+++ trunk/deluge/ui/web/js/deluge-add.js 2009-03-30 21:45:40 UTC (rev
4937)
@@ -57,17 +57,12 @@
walk(item, child);
parent.appendChild(child);
} else {
- if (item[1]) {
- var checkbox = '<input
type="checkbox" checked="checked" />';
- } else {
- var checkbox = '<input
type="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 @@
autoScroll: true,
height: 170,
border: false,
+ animate: false,
columns: [{
- width: 70,
- dataIndex: 'enabled'
- },{
header: _('Filename'),
width: 200,
dataIndex: 'filename'
@@ -111,7 +104,7 @@
dataIndex: 'size'
}],
- root: new Ext.tree.TreeNode({
+ root: new Ext.tree.AsyncTreeNode({
text: 'Files'
})
})
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---