From: phasefx Date: Thu, 29 Oct 2009 05:28:15 +0000 (+0000) Subject: params.on_retrieve() inside a retrieve_row handler must run at least once when that... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0437ef581e2c084013ce63688cab95dbbaf44c73;p=evergreen%2Fjoelewis.git params.on_retrieve() inside a retrieve_row handler must run at least once when that handler is invoked, otherwise the row will get stuck on "Refreshing..." git-svn-id: svn://svn.open-ils.org/ILS/trunk@14667 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/bill2.js b/Open-ILS/xul/staff_client/server/patron/bill2.js index c4af589f1c..e0bb9944a4 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill2.js +++ b/Open-ILS/xul/staff_client/server/patron/bill2.js @@ -92,7 +92,7 @@ function check_all_refunds() { for (var i in g.bill_map) { if ( Number( g.bill_map[i].transaction.balance_owed() ) < 0 ) { var row_params = g.row_map[i]; - //row_params.row.my.checked = true; + row_params.row.my.checked = true; g.bill_list.refresh_row(row_params); } } @@ -222,7 +222,11 @@ function init_lists() { tally_selected(); tally_all(); } ); + } else { + if (typeof params.on_retrieve == 'function') { params.on_retrieve(row); } } + } else { + if (typeof params.on_retrieve == 'function') { params.on_retrieve(row); } } return row; } catch(E) {