From: Bill Erickson Date: Fri, 20 Nov 2015 17:14:28 +0000 (-0500) Subject: RT86744 Avoid PO refresh in picklist X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ad4932e60bdf49e57fd345cf8af2e78b4ee44783;p=working%2FEvergreen.git RT86744 Avoid PO refresh in picklist Avoid calling a PO-only function (refreshPOSummaryAmounts()) in a picklist-only context. Otherwise, code dies and leaves the button for modifying copies disabled. Signed-off-by: Bill Erickson --- 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 77084dacf3..e30675ba25 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 @@ -3015,9 +3015,9 @@ function AcqLiTable() { oncomplete: function() { self.drawCopies(liId, true /* force_fetch */); openils.Util.hide("acq-lit-update-copies-progress"); - refreshPOSummaryAmounts(); self._savingCopiesInFlight = false; acqLitSaveCopies.attr('disabled', false); + if (self.isPO) refreshPOSummaryAmounts(); } } );