USABILITY: if admin is setting the password,and retyping the intended password was not successful, the retype now gets deleted, and the inital password gets selected, after the alertbox is cleared away

This commit is contained in:
Klaus Leithoff 2010-08-24 08:41:47 +00:00
parent d3ac0f0687
commit 865378921b
2 changed files with 6 additions and 2 deletions

View File

@ -23,7 +23,9 @@ function check_password(id)
if (password && (password2 || id == 'password2') && password != password2)
{
alert('{lang_passwds_unequal}');
document.getElementById('password2').focus();
document.getElementById('password2').value = '';
document.getElementById('password').select();
document.getElementById('password').focus();
return false;
}
return true;

View File

@ -24,7 +24,9 @@ function check_password(id)
if (password && (password2 || id == 'password2') && password != password2)
{
alert('{lang_passwds_unequal}');
document.getElementById('password2').focus();
document.getElementById('password2').value = '';
document.getElementById('password').select();
document.getElementById('password').focus();
return false;
}
return true;