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:51:01 +0000 (09:51 -0400)
commite7a4b69d68cedf24fcbf70acfe2d74fc566da6e4
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