LP#1886713: fix issue where AngularJS hotkeys fail to initialize user/rogan/lp1886713_hotkeys_fix
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 7 Jul 2020 20:24:49 +0000 (16:24 -0400)
committerRogan Hamby <rogan.hamby@gmail.com>
Mon, 13 Jul 2020 15:59:21 +0000 (11:59 -0400)
commit433f780ea0bcbfe78fb496c70992d306ffd20ae8
tree2eefdcf7256f1f40385b148bc1017da41c8c3b27
parent109add76520e7c2dbd2530700f91d3d7e5797e23
LP#1886713: fix issue where AngularJS hotkeys fail to initialize

Fixes a race condition where the navbar service can look for
eg-accesskey attributes before all of the elements that have
them meet the conditions to show up in the DOM.

To test
-------
[1] From an AngularJS part of the staff interface, note that
    hitting F8 sometimes does not perform the retrieve
    last patron action, nor does F8 show up on the list of
    hot keys when you hit "?" outside of an input.
[2] Apply the patch and repeat step 1. This time, the F8
    hotkey should consistently work.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Rogan Hamby <rogan.hamby@gmail.com>
Open-ILS/web/js/ui/default/staff/services/navbar.js