diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2017-09-12 12:16:21 -0400 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2017-09-13 09:34:38 -0400 |
| commit | b7581f5418ff86111005b33cb25928b5ac6ec5b5 (patch) | |
| tree | 2640b19b3ff354f1051bb7bd353dc522b01dffd1 | |
| parent | 3f2ad6a312731cbe8edff01933374381912d0414 (diff) | |
RT# 77504 - Documented javascript.
| -rw-r--r-- | httemplate/elements/validate_password.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/elements/validate_password.html b/httemplate/elements/validate_password.html index d7e9f6d81..4057f5d3f 100644 --- a/httemplate/elements/validate_password.html +++ b/httemplate/elements/validate_password.html @@ -25,7 +25,9 @@ function add_password_validation (fieldid, submitid) { inputfield.onkeydown = function(e) { var key; if (window.event) { key = window.event.keyCode; } - else { key = e.which; } + else { key = e.which; } // for ff browsers + // some browsers allow the enter key to submit a form even if the submit button is disabled + // below prevents enter key from submiting form if password has not been validated. if (key == '13') { var check = checkPasswordValidation(); return check; |
