Author: damoxc
Revision: 4928
Log:
render the checkbox correctly
Diff:
Modified: trunk/deluge/ui/web/js/deluge-add.js
===================================================================
--- trunk/deluge/ui/web/js/deluge-add.js 2009-03-23 23:16:12 UTC (rev
4927)
+++ trunk/deluge/ui/web/js/deluge-add.js 2009-03-23 23:17:04 UTC (rev
4928)
@@ -57,9 +57,14 @@
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: '<input
type="checkbox" />',
+ enabled: checkbox,
filename: file,
size: fsize(item[0]),
leaf: true,
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---