RT86744 Avoid PO refresh in picklist
authorBill Erickson <berickxx@gmail.com>
Fri, 20 Nov 2015 17:14:28 +0000 (12:14 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
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 <berickxx@gmail.com>
Open-ILS/web/js/ui/default/acq/common/li_table.js

index 77084da..e30675b 100644 (file)
@@ -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();
                     }
                 }
             );