diff options
author | Stan Hu <stanhu@gmail.com> | 2015-07-17 07:32:17 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-07-17 07:32:17 -0700 |
commit | 5bac64552d7852691edb3fed80723bc74ee62e33 (patch) | |
tree | 38a7b27aec0c5bd754b127b20350e07afae933fb /app/assets/javascripts/line_highlighter.js.coffee | |
parent | c4c41007adf5e3950f8991d4503b699d1e078705 (diff) | |
download | gitlab-ce-5bac64552d7852691edb3fed80723bc74ee62e33.tar.gz |
Fix bug where clicking on the link icon on a file would result in "L#undefined" in the URL
Closes #2002
Diffstat (limited to 'app/assets/javascripts/line_highlighter.js.coffee')
-rw-r--r-- | app/assets/javascripts/line_highlighter.js.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/line_highlighter.js.coffee b/app/assets/javascripts/line_highlighter.js.coffee index a8b3c1fa33e..e604e6025c2 100644 --- a/app/assets/javascripts/line_highlighter.js.coffee +++ b/app/assets/javascripts/line_highlighter.js.coffee @@ -70,7 +70,7 @@ class @LineHighlighter @clearHighlight() - lineNumber = $(event.target).data('line-number') + lineNumber = $(event.target).closest('a').data('line-number') current = @hashToRange(@_hash) unless current[0] && event.shiftKey |