Commit a361479f by Dányi Bence

webui: vm-credentials popup fixed (password field)

parent 2856f939
...@@ -163,6 +163,18 @@ $(function() { ...@@ -163,6 +163,18 @@ $(function() {
function get_vm_details(id) { function get_vm_details(id) {
$.get('/vm/credentials/'+id, function(data) { $.get('/vm/credentials/'+id, function(data) {
$('#modal-container').html(data); $('#modal-container').html(data);
$('.hidden-password').each(function(){
$(this).val('******');
});
$('.hidden-password').click(function(){
if(!$(this).hasClass('shown')){
$(this).val($(this).data('value'));
$(this).addClass('shown');
} else {
$(this).val('******');
$(this).removeClass('shown');
}
})
}) })
$('#modal').show(); $('#modal').show();
}; };
......
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