From b2b10858c631dea6b7ac457f8e71c61b27bf4934 Mon Sep 17 00:00:00 2001 From: John Olheiser <42128690+jolheiser@users.noreply.github.com> Date: Wed, 1 Jan 2020 21:02:11 -0600 Subject: [PATCH] Don't auto-init SimpleMDE for review textarea (#9574) Signed-off-by: jolheiser Co-authored-by: Lauris BH --- templates/repo/diff/box.tmpl | 2 +- web_src/js/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 9f3b271e2..9b0738b1b 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -213,7 +213,7 @@ {{$.i18n.Tr "preview"}}
- +
{{$.i18n.Tr "loading"}} diff --git a/web_src/js/index.js b/web_src/js/index.js index f4f08b828..3751c6d9e 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -325,7 +325,7 @@ function initCommentForm() { return; } - setCommentSimpleMDE($('.comment.form textarea')); + setCommentSimpleMDE($('.comment.form textarea:not(.review-textarea)')); initBranchSelector(); initCommentPreviewTab($('.comment.form')); initImagePaste($('.comment.form textarea'));