* [bug#50381] adjust tips for repo url.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user