[open-ils-commits] ***SPAM*** [GIT] Evergreen ILS branch master updated. 48c1b5bcf4903b6705c981f5072ca8ce8537e343

Evergreen Git git at git.evergreen-ils.org
Thu Jan 9 18:03:20 EST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  48c1b5bcf4903b6705c981f5072ca8ce8537e343 (commit)
      from  38fcad90924639560e8433de831a45bdb796df1c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 48c1b5bcf4903b6705c981f5072ca8ce8537e343
Author: Jeff Godin <jgodin at tadl.org>
Date:   Wed Oct 30 15:29:24 2013 -0400

    Treat empty username as invalid in user editor
    
    There seems to be undesired interaction between the required
    attribute and the isValid method on a dojo/dijit ValidationTextBox.
    If both are set, isValid needs to check for an empty value,
    otherwise the field is considered valid the moment it gains focus.
    
    We don't want an empty username to be considered valid, because we
    know that we will be unable to save the user.
    
    We can work around this by teaching the isValid function to consider
    an empty value as invalid.
    
    Signed-off-by: Jeff Godin <jgodin at tadl.org>
    Signed-off-by: Melissa Ceraso <mceraso at biblio.org>
    Signed-off-by: Ben Shum <bshum at biblio.org>

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 aabdc3c..daccc51 100644
--- a/Open-ILS/web/js/ui/default/actor/user/register.js
+++ b/Open-ILS/web/js/ui/default/actor/user/register.js
@@ -1347,6 +1347,10 @@ function attachWidgetEvents(fmcls, fmfield, widget) {
 
             case 'usrname':
                 widget.widget.isValid = function() {
+                    // Not empty
+                    if(this.attr("value") == '') {
+                        return false;
+                    }
                     // No spaces
                     if(this.attr("value").match(/\s/)) {
                         return false;

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/web/js/ui/default/actor/user/register.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list