Commit fd9c3b7c authored by Phil Hughes's avatar Phil Hughes

Fixed issue with other links being clicked in diffs

parent f3ed4763
...@@ -163,8 +163,8 @@ class @MergeRequestTabs ...@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment