Skip to content
Snippets Groups Projects
Commit fd9c3b7c authored by Phil Hughes's avatar Phil Hughes
Browse files

Fixed issue with other links being clicked in diffs

parent f3ed4763
No related branches found
No related tags found
1 merge request!3652Diff viewer links to correct part of the file
Loading
@@ -163,8 +163,8 @@ class @MergeRequestTabs
Loading
@@ -163,8 +163,8 @@ class @MergeRequestTabs
@highlighSelectedLine() @highlighSelectedLine()
   
$(document) $(document)
.off 'click', '.diff-content a' .off 'click', '.diff-line-num a'
.on 'click', '.diff-content a', (e) => .on 'click', '.diff-line-num a', (e) =>
e.preventDefault() e.preventDefault()
window.location.hash = $(e.currentTarget).attr 'href' window.location.hash = $(e.currentTarget).attr 'href'
@highlighSelectedLine() @highlighSelectedLine()
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment