projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
miss you, mark
[freeside.git]
/
httemplate
/
elements
/
validate_password.html
diff --git
a/httemplate/elements/validate_password.html
b/httemplate/elements/validate_password.html
index
d7e9f6d
..
4057f5d
100644
(file)
--- 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; }
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;
if (key == '13') {
var check = checkPasswordValidation();
return check;