mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +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
dc288bc4e5
commit
8d1f813be6
@ -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