提交 fd9c3b7c 编写于 作者: P Phil Hughes

Fixed issue with other links being clicked in diffs

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册