]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1886713: fix issue where AngularJS hotkeys fail to initialize
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 7 Jul 2020 20:24:49 +0000 (16:24 -0400)
committerChris Burton <cburton@nflibrary.ca>
Thu, 10 Sep 2020 16:01:35 +0000 (12:01 -0400)
commit6a7eb4c0da1fbef807b9107835fd70498a1fdae3
tree8c84938871e630a443d6c3383e36b2cfe44e1ce0
parent46bba9b276da215c1e3d898911e3e185fcb37e14
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>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/js/ui/default/staff/services/navbar.js