From ec43524083641ce0a2d51966f78ab472e8583267 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Wed, 28 Oct 2015 16:38:34 +0200 Subject: [PATCH] fix for js hint --- web/templates/admin/add_mail_acc.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/templates/admin/add_mail_acc.html b/web/templates/admin/add_mail_acc.html index 811bc1873..9b68b403a 100644 --- a/web/templates/admin/add_mail_acc.html +++ b/web/templates/admin/add_mail_acc.html @@ -49,6 +49,11 @@ randomstring += chars.substring(rnum,rnum+1); } document.v_add_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() { $('#v_account').text($('input[name=v_account]').val());