]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1717007 Improve egProgressDialog collision handling
authorBill Erickson <berickxx@gmail.com>
Wed, 27 Sep 2017 15:30:47 +0000 (11:30 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 4 Oct 2017 16:16:15 +0000 (12:16 -0400)
commitdba71f8017e2d6ff351c9ef6210972e9dcca2c56
treeb3bb66931a9dc4b949748f7fd78496d58417b054
parent75b242b233ba1f084ff8c74d87f75cc1cc301ee6
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>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/web/js/ui/default/staff/services/ui.js