summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-04-18 17:55:13 +0100
committerGitHub <noreply@github.com>2020-04-18 13:55:13 -0300
commitd9875ff2e1af91a1d73cd99ee5869aedf7fa0703 (patch)
treeea7c06e65c451b901929f263bea6e554260bb8d0
parentcc2a6c1d30474246ad4459a3d86531631d8bf45b (diff)
downloadgitea-d9875ff2e1af91a1d73cd99ee5869aedf7fa0703.tar.gz
gitea-d9875ff2e1af91a1d73cd99ee5869aedf7fa0703.zip
Refresh codemirror on show pull comment tab (#11100) (#11122)
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> 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>
-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 027e5a89c1..cc3fc824e8 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();
});
}