LP#1717007 Improve egProgressDialog collision handling user/berick/lp1717007-funky-hold-progress
authorBill Erickson <berickxx@gmail.com>
Wed, 27 Sep 2017 15:30:47 +0000 (11:30 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 27 Sep 2017 15:30:49 +0000 (11:30 -0400)
commit9aff1e6b55301ff7a100d45a71d4504844aeaf57
tree5838026aaa5b36163999ad29e657c33f3f07438a
parent8b37fc66df5791eb14ca72b962ce04e9b513b447
LP#1717007 Improve egProgressDialog collision handling

Resolves a race condition where egProgressDialog.open() is called twice
before the first call completes (i.e. the dialog is opened), leaving 2
open dialogs, one of which cannot be closed because its reference is
lost.

Going forward, attempts to open multiple dialogs will always result in
the most recently visible dialog taking preference.  When collisions
occur, a warning is also issued to the console.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/services/ui.js