USe innerHtml to avoid slow performance on a MR with very large diff

This commit is contained in:
Douglas Barbosa Alexandre 2015-12-10 13:42:10 -02:00
parent 4a29669dec
commit 0c54c9a8a3

View file

@ -144,9 +144,8 @@ class @MergeRequestTabs
@_get
url: "#{source}.json" + @_location.search
success: (data) =>
html = $(data.html)
html.syntaxHighlight()
$('#diffs').html(html)
document.getElementById('diffs').innerHTML = data.html
$('div#diffs .js-syntax-highlight').syntaxHighlight()
@diffsLoaded = true
@scrollToElement("#diffs")