]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1526185 egNet PERM_FAILURE handler
authorBill Erickson <berickxx@gmail.com>
Wed, 28 Dec 2016 15:50:41 +0000 (10:50 -0500)
committerKathy Lussier <klussier@masslnc.org>
Mon, 6 Mar 2017 03:42:55 +0000 (22:42 -0500)
commit9cc73b7825498ece1e0bbfa8445e1a4438417c44
treea3aff8dd919fa20f810546cc7b1aba69294d9235
parent22891eb1dccb101e097f355b344e1aac20e1ef9d
LP#1526185 egNet PERM_FAILURE handler

Support a new egNet.handlePermFailure() callback. When this function is
defined, it's invoked any time an egNet request returns a PERM_FAILURE
event.

When invoked, the in-progress promise linked to the original
request is effectively superseded by the promise returned by the
egNet.handlePermFailure(), living and dying with the new promise. This
makes it possible to hold off resolving the original request until the
handler is done.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/services/net.js