LP#1526185 egNet PERM_FAILURE handler
authorBill Erickson <berickxx@gmail.com>
Wed, 28 Dec 2016 15:50:41 +0000 (10:50 -0500)
committerBill Erickson <berickxx@gmail.com>
Fri, 3 Mar 2017 20:16:59 +0000 (15:16 -0500)
commitce7a4dda5130615945d09b61b275565e7b888ebd
tree1c68f5a1a40843de11561845d2d02f81ff121fc9
parente6a1e7fdcfc20499f3094111e9039eb3f5d86dfe
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>
Open-ILS/web/js/ui/default/staff/services/net.js