Patron reg button hide sanity checks user/berick/patron-create-load-js-errors
authorBill Erickson <berickxx@gmail.com>
Wed, 16 Jan 2019 18:57:10 +0000 (13:57 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 16 Jan 2019 18:57:13 +0000 (13:57 -0500)
commit4b0c2e0142376e8655e8fe5a2d7dc138b511a2f4
tree239470fef32672a056cc6b164beaab7c1b62e86c
parentb5c8093db947e2c4abcd77f23e58df97f830d9dd
Patron reg button hide sanity checks

Avoid referencing $scope.patron until the object exists when loading the
patron create interface in the staff client.  This avoids unnecessary
(and potentially misleading) JS errors on page load.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js