LP#1670512 Apply focus/select model udpates via timeout user/berick/lp1670512-focus-me-etc-digest-errors
authorBill Erickson <berickxx@gmail.com>
Tue, 7 Mar 2017 17:25:32 +0000 (12:25 -0500)
committerBill Erickson <berickxx@gmail.com>
Tue, 7 Mar 2017 17:25:35 +0000 (12:25 -0500)
commitf7e11721cb007c9e494a8971932b469dcf9b8f2c
tree05fada1239c1db03f3c99c1d762dea1bb87ea2c7
parent16820395ec44a6944f020cb65c2d79c315de209e
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>
Open-ILS/web/js/ui/default/staff/services/ui.js