Ensure existing notes are highlighted properly on a merge request diff

parent 9e5ac728
......@@ -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")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment