[open-ils-commits] [GIT] Evergreen ILS branch master updated. 0f02a20592f05d9304346e6ef28d10a9371efdae

Evergreen Git git at git.evergreen-ils.org
Mon Dec 10 16:32:16 EST 2012


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  0f02a20592f05d9304346e6ef28d10a9371efdae (commit)
      from  5bc693977b1fa85e23551a73551c231a3fe16cd1 (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 0f02a20592f05d9304346e6ef28d10a9371efdae
Author: edoceo <code at edoceo.com>
Date:   Wed Nov 7 20:08:27 2012 -0800

    Allow 'Enter' key to run Verify Credentials user check
    
    In both the "Verify Credentials" menu and "Test Password" patron account
    option, this change checks for the keypress of "Enter" and then executes
    the cmd_verify routine.
    
    Additionally, the password field is blanked after each attempt.
    
    Signed-off-by: edoceo <code at edoceo.com>
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/xul/staff_client/server/main/verify_credentials.js b/Open-ILS/xul/staff_client/server/main/verify_credentials.js
index 3d2a484..03193c7 100644
--- a/Open-ILS/xul/staff_client/server/main/verify_credentials.js
+++ b/Open-ILS/xul/staff_client/server/main/verify_credentials.js
@@ -65,7 +65,6 @@ function verify_init() {
                         )
                     );
 
-
                 } catch(E) {
                     alert(E);
                 }
@@ -74,6 +73,7 @@ function verify_init() {
                 } else {
                     document.getElementById('name_prompt').focus();
                 }
+                document.getElementById('password_prompt').value = '';
             },
             false
         );
@@ -111,6 +111,14 @@ function verify_init() {
             document.getElementById('name_prompt').focus();
         }
 
+        document.getElementById('password_prompt').addEventListener('keypress',function(e) {
+            if ( e.keyCode && (e.keyCode == 13 || e.keyCode == 77)) {
+                var x = document.createEvent('Event');
+                x.initEvent('command',true,false);
+                document.getElementById('cmd_verify').dispatchEvent(x);
+            }
+        });
+
     } catch(E) {
         alert(E);
     }

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

Summary of changes:
 .../staff_client/server/main/verify_credentials.js |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list