connect info on edit page

This commit is contained in:
Serghey Rodin 2016-10-06 11:25:32 +03:00
parent 4186ea0617
commit e05e01d007
3 changed files with 71 additions and 2 deletions

View file

@ -86,6 +86,11 @@ randomString = function() {
randomstring += chars.substr(rnum, 1);
}
document.v_edit_mail_acc.v_password.value = randomstring;
if($('input[name=v_password]').attr('type') == 'text')
$('#v_password').text(randomstring);
else
$('#v_password').text(Array(randomstring.length+1).join('*'));
}
$(document).ready(function() {