mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-08 14:30:05 +01:00
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:
parent
d3ac0f0687
commit
865378921b
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user