diff --git a/module/repo/js/browse.ui.js b/module/repo/js/browse.ui.js index 5516e4e3a1..5dea9ec2aa 100644 --- a/module/repo/js/browse.ui.js +++ b/module/repo/js/browse.ui.js @@ -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));