summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-04-18 05:19:19 +0100
committerGitHub <noreply@github.com>2020-04-18 01:19:19 -0300
commit731bdef4be033020063528355b1ae0f156b2d4fa (patch)
tree1ede99983477f728703a4e4ee51d0e3f1bd4bfe4 /web_src
parent12960b9d1861c9e7b0b5c7076dec029de80a1944 (diff)
downloadgitea-731bdef4be033020063528355b1ae0f156b2d4fa.tar.gz
gitea-731bdef4be033020063528355b1ae0f156b2d4fa.zip
Refresh codemirror on show pull comment tab (#11100)
Fix #10975 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 63a5134bbd..2203ab7243 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -1135,6 +1135,7 @@ async function initRepository() {
$repoComparePull.find('button.show-form').on('click', function (e) {
e.preventDefault();
$repoComparePull.find('.pullrequest-form').show();
+ autoSimpleMDE.codemirror.refresh();
$(this).parent().hide();
});
}