]> git.evergreen-ils.org Git - 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)
committerMike Rylander <mrylander@gmail.com>
Fri, 24 Jul 2020 13:51:06 +0000 (09:51 -0400)
commit88d26e9d6033bad60a7d186b2e4282ce2aecc250
treea691c0318399a2c58b4e545c6f026f93e03fab75
parent5ee5c4cf81288f25264f4beb99d6bf4d0ae7af12
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