params.on_retrieve() inside a retrieve_row handler must run at least once when that...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 29 Oct 2009 05:28:15 +0000 (05:28 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 29 Oct 2009 05:28:15 +0000 (05:28 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14667 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/bill2.js

index c4af589..e0bb994 100644 (file)
@@ -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) {