Ensure existing notes are highlighted properly on a merge request diff

This commit is contained in:
Douglas Barbosa Alexandre 2015-12-09 11:59:32 -02:00
parent 9e5ac7285c
commit 05f06955ba

View file

@ -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")