* Hide password and token of instance view page.

This commit is contained in:
zhaoke
2023-08-29 13:24:55 +08:00
parent 8adee143c7
commit d22a23745c
16 changed files with 193 additions and 10 deletions
+30 -5
View File
@@ -33,11 +33,36 @@ window.afterPageUpdate = function()
if($('#statusTD').data('reload') === true || $('#memoryRate').data('load') == true)
{
reloadTimes++;
fetchContent({url: $.createLink('instance', 'view', 'id=' + instanceID),
selector: '#instanceInfoContainer',
id: 'instanceInfoContainer',
target: '#instanceInfoContainer',
});
fetchContent
({
url: $.createLink('instance', 'view', 'id=' + instanceID),
selector: '#instanceInfoContainer',
id: 'instanceInfoContainer',
target: '#instanceInfoContainer',
});
}
}, 4000);
}
$('.copy-btn').on('click', function()
{
var copyText = $(this).parent().find('input');
copyText.show();
copyText[0].select();
document.execCommand("Copy");
copyText.hide();
var that = this;
$(that).tooltip
({
trigger: 'click',
placement: 'bottom',
title: copied,
tipClass: 'success',
show:true
});
setTimeout(function()
{
$(that).tooltip('hide');
}, 2000)
})