]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1670512 Apply focus/select model udpates via timeout
authorBill Erickson <berickxx@gmail.com>
Tue, 7 Mar 2017 17:25:32 +0000 (12:25 -0500)
committerKathy Lussier <klussier@masslnc.org>
Tue, 21 Mar 2017 13:48:12 +0000 (09:48 -0400)
commit014fc6aa63a1512bd0bf2cf4582ac79fb85e82d0
tree59be86f12b4fe98ed3f610fcb38ce7c0cccd569c
parent782803c5dd81ac7547a5011015fe04dd9ad1562e
LP#1670512 Apply focus/select model udpates via timeout

Avoid manually invoking scope.$apply() in the midst of an angular
$digest loop, since this is forbidden by angular.  Wrap the apply()'s in
a $timeout, so they occur after the currently running digest.

Fixes the focusMe, blurMe, and selectMe directives.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/services/ui.js