if (!this.confirmBreachedCopyFunds(copies))
return;
+ if (this._savingCopiesInFlight) {
+ // Save in progress. Get outta here.
+ return;
+ }
+
+ this._savingCopiesInFlight = true;
+ acqLitSaveCopies.attr('disabled', true);
+
if (typeof(this._copy_count_cb) == "function")
this._copy_count_cb(liId, total);
self.drawCopies(liId, true /* force_fetch */);
openils.Util.hide("acq-lit-update-copies-progress");
refreshPOSummaryAmounts();
+ self._savingCopiesInFlight = false;
+ acqLitSaveCopies.attr('disabled', false);
}
}
);