From d9875ff2e1af91a1d73cd99ee5869aedf7fa0703 Mon Sep 17 00:00:00 2001 From: zeripath Date: Sat, 18 Apr 2020 17:55:13 +0100 Subject: [PATCH] Refresh codemirror on show pull comment tab (#11100) (#11122) Fix #10975 Signed-off-by: Andrew Thornton Co-authored-by: John Olheiser Co-authored-by: techknowlogick Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: John Olheiser Co-authored-by: techknowlogick Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> --- web_src/js/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web_src/js/index.js b/web_src/js/index.js index 027e5a89c..cc3fc824e 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -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(); }); }