Fix line diff side-by-side line highlighting
This commit is contained in:
parent
f7be904afa
commit
2eb2cbe6ae
1 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue