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
b74f2faa
Commit
b74f2faa
authored
Jan 25, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use handleLocationHash utility method
parent
94715834
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
app/assets/javascripts/diff.js.es6
app/assets/javascripts/diff.js.es6
+4
-2
No files found.
app/assets/javascripts/diff.js.es6
View file @
b74f2faa
/* eslint-disable class-methods-use-this */
/* eslint-disable class-methods-use-this */
//= require lib/utils/url_utility */
(() => {
(() => {
const UNFOLD_COUNT = 20;
const UNFOLD_COUNT = 20;
...
@@ -104,11 +106,11 @@
...
@@ -104,11 +106,11 @@
}
}
highlighSelectedLine() {
highlighSelectedLine() {
const hash = gl.utils.getLocationHash();
const $diffFiles = $('.diff-file');
const $diffFiles = $('.diff-file');
$diffFiles.find('.hll').removeClass('hll');
$diffFiles.find('.hll').removeClass('hll');
if (window.location.hash !== '') {
if (hash) {
const hash = window.location.hash.replace('#', '');
$diffFiles
$diffFiles
.find(`tr#${hash}:not(.match) td, td#${hash}, td[data-line-code="${hash}"]`)
.find(`tr#${hash}:not(.match) td, td#${hash}, td[data-line-code="${hash}"]`)
.addClass('hll');
.addClass('hll');
...
...
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