diff options
author | Phil Hughes <me@iamphill.com> | 2016-09-13 10:26:04 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-09-13 11:51:52 +0100 |
commit | 2eb2cbe6ae4aa8c66966f47f84551c76d114af75 (patch) | |
tree | d9f5fa6e8cd5b077b0814ca2365153af8ce77d1a /app | |
parent | f7be904afa2edf731e87f1f60918c0d82234eff4 (diff) | |
download | gitlab-ce-2eb2cbe6ae4aa8c66966f47f84551c76d114af75.tar.gz |
Fix line diff side-by-side line highlightingdiff-line-highlighting-fix
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/merge_request_tabs.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/merge_request_tabs.js b/app/assets/javascripts/merge_request_tabs.js index dcba4a8d275..18bbfa7a459 100644 --- a/app/assets/javascripts/merge_request_tabs.js +++ b/app/assets/javascripts/merge_request_tabs.js @@ -232,10 +232,10 @@ $('.hll').removeClass('hll'); locationHash = window.location.hash; if (locationHash !== '') { - hashClassString = "." + (locationHash.replace('#', '')); + dataLineString = '[data-line-code="' + locationHash.replace('#', '') + '"]'; $diffLine = $(locationHash + ":not(.match)", $('#diffs')); if (!$diffLine.is('tr')) { - $diffLine = $('#diffs').find("td" + locationHash + ", td" + hashClassString); + $diffLine = $('#diffs').find("td" + locationHash + ", td" + dataLineString); } else { $diffLine = $diffLine.find('td'); } |