From b04b5d003c8a12df369ec59fef8ab3b40b77476b Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Fri, 26 Jul 2024 16:03:29 +0800 Subject: [PATCH] * [bug#50381] adjust tips for repo url. --- module/repo/js/browse.ui.js | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) 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));