Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ae2e0b69
Commit
ae2e0b69
authored
Apr 21, 2017
by
Simon Knox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix inline diff copying in firefox
parent
bbd83376
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
app/assets/javascripts/lib/utils/common_utils.js
app/assets/javascripts/lib/utils/common_utils.js
+4
-1
changelogs/unreleased/31193-ff-copy.yml
changelogs/unreleased/31193-ff-copy.yml
+4
-0
No files found.
app/assets/javascripts/lib/utils/common_utils.js
View file @
ae2e0b69
...
@@ -169,7 +169,10 @@
...
@@ -169,7 +169,10 @@
w
.
gl
.
utils
.
getSelectedFragment
=
()
=>
{
w
.
gl
.
utils
.
getSelectedFragment
=
()
=>
{
const
selection
=
window
.
getSelection
();
const
selection
=
window
.
getSelection
();
if
(
selection
.
rangeCount
===
0
)
return
null
;
if
(
selection
.
rangeCount
===
0
)
return
null
;
const
documentFragment
=
selection
.
getRangeAt
(
0
).
cloneContents
();
const
documentFragment
=
document
.
createDocumentFragment
();
for
(
let
i
=
0
;
i
<
selection
.
rangeCount
;
i
+=
1
)
{
documentFragment
.
appendChild
(
selection
.
getRangeAt
(
i
).
cloneContents
());
}
if
(
documentFragment
.
textContent
.
length
===
0
)
return
null
;
if
(
documentFragment
.
textContent
.
length
===
0
)
return
null
;
return
documentFragment
;
return
documentFragment
;
...
...
changelogs/unreleased/31193-ff-copy.yml
0 → 100644
View file @
ae2e0b69
---
title
:
fix inline diff copy in firefox
merge_request
:
author
:
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