make the password generator work also when editing a user

This commit is contained in:
Marc Delisle
2005-05-17 16:59:44 +00:00
parent 75833b0cd9
commit 746736b23e
3 changed files with 9 additions and 5 deletions

View File

@@ -110,7 +110,7 @@ function suggestPassword(the_form)
passwd+=pwchars.charAt(Math.floor(Math.random()*pwchars.length))
}
document.forms[the_form].generated_pw.value = passwd;
the_form.generated_pw.value = passwd;
return true;
}
@@ -124,8 +124,8 @@ function suggestPassword(the_form)
*/
function suggestPasswordCopy(the_form)
{
document.forms[the_form].pma_pw.value = document.forms[the_form].generated_pw.value;
document.forms[the_form].pma_pw2.value = document.forms[the_form].generated_pw.value;
the_form.pma_pw.value = the_form.generated_pw.value;
the_form.pma_pw2.value = the_form.generated_pw.value;
return true;
}