LP#1676608: allow focus-me to accept constant
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 22 Feb 2018 20:44:52 +0000 (15:44 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 22 Feb 2018 20:44:52 +0000 (15:44 -0500)
commit3de0e2d0ec7c62d34ca23c71f6a30b7d46080af5
tree6428fceaac322c6517ee09c3b5ba16b82971cec7
parentf9d20fe0534d88e33b1ca2a1ea9a7d6317dcac72
LP#1676608: allow focus-me to accept constant

A handfull of cases have arisen, including but not limited to
the copy alerts feature, where focus-me is set to simply "true"
rather than being bound to to a scope variable. This patch formalizes
this and gets rid of the following console warning:

angular.min.js:119 TypeError: model.assign is not a function
    at ui.js:23
    at angular.min.js:160
    at f (angular.min.js:45)
    at angular.min.js:48
(anonymous) @ angular.min.js:119

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/web/js/ui/default/staff/services/ui.js