Refresh codemirror on show pull comment tab (#11100) (#11122)

Fix #10975

Signed-off-by: Andrew Thornton <[email protected]>

Co-authored-by: John Olheiser <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
Co-authored-by: guillep2k <[email protected]>

Co-authored-by: John Olheiser <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
Co-authored-by: guillep2k <[email protected]>
This commit is contained in:
zeripath
2020-04-18 13:55:13 -03:00
committed by GitHub
co-authored by GitHub John Olheiser techknowlogick guillep2k
parent cc2a6c1d30
commit d9875ff2e1
+1
View File
@@ -1098,6 +1098,7 @@ function initRepository() {
$repoComparePull.find('button.show-form').on('click', function (e) {
e.preventDefault();
$repoComparePull.find('.pullrequest-form').show();
autoSimpleMDE.codemirror.refresh();
$(this).parent().hide();
});
}