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
eda9e6b6
Commit
eda9e6b6
authored
Oct 05, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Linting Error + Error with Line Highlighter found in Test
parent
8262cb2f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/line_highlighter.js
app/assets/javascripts/line_highlighter.js
+1
-1
app/assets/javascripts/repo/components/repo_preview.vue
app/assets/javascripts/repo/components/repo_preview.vue
+2
-2
No files found.
app/assets/javascripts/line_highlighter.js
View file @
eda9e6b6
...
@@ -56,7 +56,7 @@ LineHighlighter.prototype.bindEvents = function() {
...
@@ -56,7 +56,7 @@ LineHighlighter.prototype.bindEvents = function() {
LineHighlighter
.
prototype
.
highlightHash
=
function
(
newHash
)
{
LineHighlighter
.
prototype
.
highlightHash
=
function
(
newHash
)
{
let
range
;
let
range
;
if
(
newHash
)
this
.
_hash
=
newHash
;
if
(
newHash
&&
typeof
newHash
===
'
string
'
)
this
.
_hash
=
newHash
;
this
.
clearHighlight
();
this
.
clearHighlight
();
...
...
app/assets/javascripts/repo/components/repo_preview.vue
View file @
eda9e6b6
...
@@ -28,8 +28,8 @@ export default {
...
@@ -28,8 +28,8 @@ export default {
this
.
highlightFile
();
this
.
highlightFile
();
});
});
},
},
activeLine
(
e
)
{
activeLine
()
{
this
.
lineHighlighter
.
highlightHash
(
'
#L
'
+
Store
.
activeLine
);
this
.
lineHighlighter
.
highlightHash
(
`#L
${
Store
.
activeLine
}
`
);
},
},
},
},
};
};
...
...
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