Skip to content

Commit ec43524

Browse files
committed
fix for js hint
1 parent ae15d93 commit ec43524

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

web/templates/admin/add_mail_acc.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@
4949
randomstring += chars.substring(rnum,rnum+1);
5050
}
5151
document.v_add_mail_acc.v_password.value = randomstring;
52+
53+
if($('input[name=v_password]').attr('type') == 'text')
54+
$('#v_password').text(randomstring);
55+
else
56+
$('#v_password').text(Array(randomstring.length+1).join('*'));
5257
}
5358
$(document).ready(function() {
5459
$('#v_account').text($('input[name=v_account]').val());

0 commit comments

Comments
 (0)