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
@highlighSelectedLine()
$(document)
.off 'click', '.diff-content a'
.on 'click', '.diff-content a', (e) =>
.off 'click', '.diff-line-num a'
.on 'click', '.diff-line-num a', (e) =>
e.preventDefault()
window.location.hash = $(e.currentTarget).attr 'href'
@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