From f0a25a34863ec634d8ed59df89ff390070d7f7b8 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 30 Mar 2009 21:38:39 +0000 Subject: [PATCH] add support for displaying a checkbox in the tree --- deluge/ui/web/js/ext-all.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deluge/ui/web/js/ext-all.js b/deluge/ui/web/js/ext-all.js index 49098e143..efc7a6424 100644 --- a/deluge/ui/web/js/ext-all.js +++ b/deluge/ui/web/js/ext-all.js @@ -50,6 +50,8 @@ Ext.tree.ColumnNodeUI = Ext.extend(Ext.tree.TreeNodeUI, { var cols = t.columns; var bw = t.borderWidth; var c = cols[0]; + + var cb = typeof a.checked == 'boolean'; var buf = [ '
  • ', @@ -57,6 +59,7 @@ Ext.tree.ColumnNodeUI = Ext.extend(Ext.tree.TreeNodeUI, { '',this.indentMarkup,"", '', '', + cb ? ('' : '/>')) : '', '', '', n.text || (c.renderer ? c.renderer(a[c.dataIndex], n, a) : a[c.dataIndex]),"",