From 21d9409b17851ea82a788006ff84dd90f310f546 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 7 Sep 2010 14:52:01 +0000 Subject: [PATCH] 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/branches/rel_2_0@17497 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/ui/default/acq/common/li_table.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.11.0