We were looking for the checkbox column to be the first treecell in a treerow,
but the ever-present line number column now takes up that position.
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
var treeItem = g.bill_list.node.contentView.getItemAtIndex(row.value);
if (treeItem.nodeName != 'treeitem') return;
var treeRow = treeItem.firstChild;
- var treeCell = treeRow.firstChild;
+ var treeCell = treeRow.firstChild.nextSibling;
if (g.check_map[ treeItem.getAttribute('retrieve_id') ] != (treeCell.getAttribute('value') == 'true')) {
g.check_map[ treeItem.getAttribute('retrieve_id') ] = treeCell.getAttribute('value') == 'true';
g.row_map[ treeItem.getAttribute('retrieve_id') ].row.my.checked = treeCell.getAttribute('value') == 'true';