diff options
author | Christopher Burger <burgerc@freeside.biz> | 2017-09-12 12:08:41 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2017-09-12 12:08:41 -0400 |
commit | 998b32d356338772484814a477d9efb159206b8d (patch) | |
tree | f93eebad83be0b899d8c37336d25b9eac80bf0b8 /httemplate/elements/validate_password.html | |
parent | 23f29deffa1fc6bc1a7b904c80f71db2d76dc26e (diff) |
RT# 77504 - Fixed error display issue, and javascript to prevent error.
Diffstat (limited to 'httemplate/elements/validate_password.html')
-rw-r--r-- | httemplate/elements/validate_password.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/httemplate/elements/validate_password.html b/httemplate/elements/validate_password.html index 3d23a55..d7e9f6d 100644 --- a/httemplate/elements/validate_password.html +++ b/httemplate/elements/validate_password.html @@ -22,6 +22,15 @@ should be the input id plus '_result'. <SCRIPT> function add_password_validation (fieldid, submitid) { var inputfield = document.getElementById(fieldid); + inputfield.onkeydown = function(e) { + var key; + if (window.event) { key = window.event.keyCode; } + else { key = e.which; } + if (key == '13') { + var check = checkPasswordValidation(); + return check; + } + } inputfield.onkeyup = function () { var fieldid = this.id+'_result'; var resultfield = document.getElementById(fieldid); |