diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2017-09-12 12:08:41 -0400 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2017-09-13 10:11:30 -0400 |
| commit | 0a91d21fcf8ebeb12cd71230d79153c1fa0d82a3 (patch) | |
| tree | 1d3cd3857824e8a1abe7453762facce6ae51f8c4 /httemplate/elements/validate_password.html | |
| parent | a84d14e36ad747dcc15cd5a4706e91c7cabb0afb (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 1b0688e3c..8c8cf4279 100644 --- a/httemplate/elements/validate_password.html +++ b/httemplate/elements/validate_password.html @@ -23,6 +23,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); |
