From: erickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Tue, 7 Sep 2010 14:51:21 +0000 (+0000)
Subject: make lineitem price updates synchronous to prevent race condition between onChange... 
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c6544d9972e0a02f814a6b3392fcf9dc59db0a60;p=evergreen%2Ftadl.git

make lineitem price updates synchronous to prevent race condition between onChange of price set completion and PO activation

git-svn-id: svn://svn.open-ils.org/ILS/trunk@17496 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/web/js/ui/default/acq/common/li_table.js b/Open-ILS/web/js/ui/default/acq/common/li_table.js
index f57576c528..c794a511c3 100644
--- a/Open-ILS/web/js/ui/default/acq/common/li_table.js
+++ b/Open-ILS/web/js/ui/default/acq/common/li_table.js
@@ -733,7 +733,8 @@ function AcqLiTable() {
 
         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);