NIHVIVO-1705: changed to handle cancel

This commit is contained in:
tlw72 2011-01-14 19:08:48 +00:00
parent 0356e4dde9
commit a1238584fa

View file

@ -32,9 +32,11 @@
function validatePw(theForm) { function validatePw(theForm) {
if ( theForm.Md5password.value != "CANCEL") {
if ( !validateUserFields(theForm) ) { if ( !validateUserFields(theForm) ) {
return false; return false;
} }
}
if (theForm.Md5password.value.length == 0 ) { if (theForm.Md5password.value.length == 0 ) {
alert("Please enter a password."); alert("Please enter a password.");
theForm.Md5password.focus(); theForm.Md5password.focus();