BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1bde1985
Commit
1bde1985
authored
Sep 10, 2016
by
Luke Howell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tooltip for Copy to clipboard button.
Fix "Copy to clipboard" tooltip to say "Copied!" when clipboard button is clicked. Closes #22022
parent
80fef70b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
CHANGELOG
CHANGELOG
+1
-0
copy_to_clipboard.js
app/assets/javascripts/copy_to_clipboard.js
+9
-9
No files found.
CHANGELOG
View file @
1bde1985
...
...
@@ -22,6 +22,7 @@ v 8.13.0 (unreleased)
- Fix broken repository 500 errors in project list
v 8.12.4 (unreleased)
- Fix "Copy to clipboard" tooltip to say "Copied!" when clipboard button is clicked. (lukehowell)
v 8.12.3
- Update Gitlab Shell to support low IO priority for storage moves
...
...
app/assets/javascripts/copy_to_clipboard.js
View file @
1bde1985
...
...
@@ -26,15 +26,15 @@
};
showTooltip
=
function
(
target
,
title
)
{
return
$
(
target
).
tooltip
({
container
:
'body'
,
html
:
'true'
,
placement
:
'auto bottom'
,
title
:
title
,
trigger
:
'manual'
}).
tooltip
(
'show'
).
one
(
'mouseleave'
,
function
()
{
return
$
(
this
).
tooltip
(
'hide'
);
}
);
var
$target
=
$
(
target
);
var
originalTitle
=
$target
.
data
(
'original-title'
);
$target
.
attr
(
'title'
,
'Copied!'
)
.
tooltip
(
'fixTitle'
)
.
tooltip
(
'show'
)
.
attr
(
'title'
,
originalTitle
)
.
tooltip
(
'fixTitle'
);
};
$
(
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment