Commit 48a28dec by Dányi Bence

webui: password display implementation changed

parent dcd8639d
......@@ -179,24 +179,14 @@ $(function() {
$('#new-group-semester').change(updateSummary);
$('#new-group-members').change(updateSummary);
});
$('#vm-password-show').click(function() {
$('#vm-password-show').hide();
$('#vm-password').show();
});
$('.hidden-password').each(function() {
$(this).val('******');
});
$('.hidden-password').click(function() {
if(!$(this).hasClass('shown')) {
$(this).val($(this).data('value'));
$(this).addClass('shown');
if($(this).attr('type') == 'password'){
$(this).attr('type', 'text');
} else {
$(this).val('******');
$(this).removeClass('shown');
$(this).attr('type', 'password');
}
})
toggleDetails.apply($('.selected-summary'));
toggleDetails.apply($('.selected-summary'));
});
$('.selected-summary').next().show();
/**
* Connect button new window
*/
......
......@@ -20,7 +20,7 @@
</tr>
<tr>
<th>{% trans "Password" %}:</th>
<td><input type="text" class="hidden-password" data-value="{{ i.pw }}" /></td>
<td><input type="password" class="hidden-password" value="{{ i.pw }}" /></td>
</tr>
</table>
</div>
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 sign in to comment