From ffafabde6a24eb05527e0b5ffadf381ad9399ee9 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Tue, 10 Apr 2012 12:57:16 -0400 Subject: [PATCH] Fix bill selection in the billing interface 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 Signed-off-by: Ben Shum --- Open-ILS/xul/staff_client/server/patron/bill2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/patron/bill2.js b/Open-ILS/xul/staff_client/server/patron/bill2.js index 5b985086f7..2507345d25 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill2.js +++ b/Open-ILS/xul/staff_client/server/patron/bill2.js @@ -516,7 +516,7 @@ function init_lists() { 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'; -- 2.11.0