X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fvalidate_password.html;fp=httemplate%2Felements%2Fvalidate_password.html;h=73c0db2812f73ae5d8d84d98fe54bfb398ae78b9;hb=ded6a5654efd56d2f271970c992133600e0223b1;hp=4057f5d3fe1daa6dbe3e1f7cd5b09867da7fcd6c;hpb=5df83a73541d983c51eff47e875cf63fc45e53ff;p=freeside.git diff --git a/httemplate/elements/validate_password.html b/httemplate/elements/validate_password.html index 4057f5d3f..73c0db281 100644 --- a/httemplate/elements/validate_password.html +++ b/httemplate/elements/validate_password.html @@ -29,7 +29,7 @@ function add_password_validation (fieldid, submitid) { // 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(); + var check = checkPasswordValidation(fieldid); return check; } } @@ -61,6 +61,7 @@ function add_password_validation (fieldid, submitid) { ); } else { resultfield.innerHTML = ''; + if (submitid){ document.getElementById(submitid).disabled = false; } } }; }