Ensure existing notes are highlighted properly on a merge request diff
This commit is contained in:
parent
9e5ac7285c
commit
05f06955ba
1 changed files with 3 additions and 1 deletions
|
@ -144,7 +144,9 @@ class @MergeRequestTabs
|
|||
@_get
|
||||
url: "#{source}.json" + @_location.search
|
||||
success: (data) =>
|
||||
document.getElementById('diffs').innerHTML = data.html
|
||||
html = $(data.html)
|
||||
html.syntaxHighlight()
|
||||
$('#diffs').html(html)
|
||||
@diffsLoaded = true
|
||||
@scrollToElement("#diffs")
|
||||
|
||||
|
|
Loading…
Reference in a new issue