From: Jeff Godin Date: Wed, 30 Oct 2013 18:37:10 +0000 (-0400) Subject: Don't show contact invalidators for new users X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fjeff%2Ffix_lp1246843_contact_invalidators;p=working%2FEvergreen.git Don't show contact invalidators for new users Don't show contact invalidator buttons for new users. This affects staged users and cloned users, where the contact fields have a value when the editor initially loads. Signed-off-by: Jeff Godin --- diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js index aabdc3c203..d6f190d0e6 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -299,7 +299,9 @@ function load() { saveCloneButton.attr('disabled', true); } - uUpdateContactInvalidators(); + if (!patron.isnew()) { // Only existing users get Invalidators + uUpdateContactInvalidators(); + } // Cancel mouse scroll events from propagating to table rows which are // using the dijit.form.NumberSpinner widget, because the mouse scroll