[open-ils-commits] r14667 - trunk/Open-ILS/xul/staff_client/server/patron (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Oct 29 01:28:18 EDT 2009


Author: phasefx
Date: 2009-10-29 01:28:15 -0400 (Thu, 29 Oct 2009)
New Revision: 14667

Modified:
   trunk/Open-ILS/xul/staff_client/server/patron/bill2.js
Log:
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..."

Modified: trunk/Open-ILS/xul/staff_client/server/patron/bill2.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/bill2.js	2009-10-29 05:11:52 UTC (rev 14666)
+++ trunk/Open-ILS/xul/staff_client/server/patron/bill2.js	2009-10-29 05:28:15 UTC (rev 14667)
@@ -92,7 +92,7 @@
         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 @@
                             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) {



More information about the open-ils-commits mailing list