diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2017-09-12 12:08:41 -0400 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2017-09-13 09:34:01 -0400 |
| commit | 3f2ad6a312731cbe8edff01933374381912d0414 (patch) | |
| tree | 44ea63c82f94b46996f6ef3302e8e1e4c93005a7 /httemplate/elements/validate_password.html | |
| parent | 776d893a285a01a913c6e244bb6fe987c3602cdc (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 3d23a552c..d7e9f6d81 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); |
