]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1676608: allow focus-me to accept constant
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 22 Feb 2018 20:44:52 +0000 (15:44 -0500)
committerMike Rylander <mrylander@gmail.com>
Wed, 28 Feb 2018 15:26:43 +0000 (10:26 -0500)
commitc9fb95e59db76815e05ad124a4290439df6f8819
treefb839fab6373dff01d650ae0bc228f0ed8165313
parent5b75e9b01c94c861a5ede9e76f34ac10ec3a4a8f
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>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/js/ui/default/staff/services/ui.js