Commit 117ecd60 authored by Falko Timme's avatar Falko Timme
Browse files

- autoselect password if you use "Generate Password" function (saves a click...

- autoselect password if you use "Generate Password" function (saves a click if you want to copy the password).
parent b509d005
......@@ -809,7 +809,7 @@ function generatePassword(passwordFieldID, repeatPasswordFieldID){
oldPWField.remove();
var pword = password(<?php echo $min_password_length; ?>, false, 1);
jQuery('#'+repeatPasswordFieldID).val(pword);
newPWField.attr('id', passwordFieldID).val(pword).trigger('keyup');
newPWField.attr('id', passwordFieldID).val(pword).trigger('keyup').select();
}
var funcDisableClick = function(e) { e.preventDefault(); return false; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment