[open-ils-commits] r17496 - trunk/Open-ILS/web/js/ui/default/acq/common (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Sep 7 10:51:24 EDT 2010


Author: erickson
Date: 2010-09-07 10:51:21 -0400 (Tue, 07 Sep 2010)
New Revision: 17496

Modified:
   trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
Log:
make lineitem price updates synchronous to prevent race condition between onChange of price set completion and PO activation

Modified: trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js	2010-09-07 14:18:50 UTC (rev 17495)
+++ trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js	2010-09-07 14:51:21 UTC (rev 17496)
@@ -733,7 +733,8 @@
 
         fieldmapper.standardRequest(
             ['open-ils.acq', 'open-ils.acq.lineitem.price.set'],
-            {   async : true,
+            {   async : false, // redundant w/ timeout
+                timeout : 10,
                 params : [this.authtoken, li.id(), price],
                 oncomplete : function(r) {
                     openils.Util.readResponse(r);



More information about the open-ils-commits mailing list