[freeside-commits] branch master updated. 3e46323fb8c43b5a226251299a993befc896b71f
Christopher Burger
burgerc at 420.am
Tue Sep 12 09:16:41 PDT 2017
The branch, master has been updated
via 3e46323fb8c43b5a226251299a993befc896b71f (commit)
from 998b32d356338772484814a477d9efb159206b8d (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 3e46323fb8c43b5a226251299a993befc896b71f
Author: Christopher Burger <burgerc at freeside.biz>
Date: Tue Sep 12 12:16:21 2017 -0400
RT# 77504 - Documented javascript.
diff --git a/httemplate/elements/validate_password.html b/httemplate/elements/validate_password.html
index d7e9f6d..4057f5d 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;
-----------------------------------------------------------------------
Summary of changes:
httemplate/elements/validate_password.html | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list