* [bug#50381] adjust tips for repo url.

This commit is contained in:
caoyanyi
2024-07-26 16:17:41 +08:00
committed by 翟晓剑
parent a359d301e5
commit b04b5d003c
+5 -18
View File
@@ -263,26 +263,13 @@ $('.copy-btn').on('click', function()
copyText[0].selectionStart = copyText[0].selectionEnd;
copyText[0].blur();
var that = this;
setTimeout(function()
{
$(that).tooltip('hide');
}, 2000)
zui.Messager.show({
type: 'success',
content: copied,
time: 2000
});
})
window.afterPageUpdate = function()
{
setTimeout(function()
{
$('.copy-btn').tooltip({
trigger: 'click',
placement: 'bottom',
title: copied,
tipClass: 'success',
});
}, 1);
};
$(function()
{
if(base64BranchID) $.get($.createLink('repo', 'ajaxSyncBranchCommit', 'repoID=' + repo.id + '&branch=' + base64BranchID));