]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1717007 Improve egProgressDialog collision handling user/cesardv/berick_lp1717007-funky-hold-progress_signoff
authorBill Erickson <berickxx@gmail.com>
Wed, 27 Sep 2017 15:30:47 +0000 (11:30 -0400)
committerCesar Velez <cesar.velez@equinoxinitiative.org>
Thu, 28 Sep 2017 21:13:18 +0000 (17:13 -0400)
commita0d962a132a1ffcdb74b8debed5f57491d15a113
tree9ed9bc341231325896b71554da36dc378d626835
parentb2ee1ea3562b9d3f2f69633d8a759d5dabd29270
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>
Signed-off-by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Open-ILS/web/js/ui/default/staff/services/ui.js