浏览代码

Don't auto-init SimpleMDE for review textarea (#9574)

Signed-off-by: jolheiser <john.olheiser@gmail.com>

Co-authored-by: Lauris BH <lauris@nix.lv>
tags/v1.11.0-rc1
John Olheiser 4 年前
父节点
当前提交
b2b10858c6
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      templates/repo/diff/box.tmpl
  2. 1
    1
      web_src/js/index.js

+ 1
- 1
templates/repo/diff/box.tmpl 查看文件

@@ -213,7 +213,7 @@
<a class="preview item" data-url="{{$.Repository.APIURL}}/markdown" data-context="{{$.RepoLink}}">{{$.i18n.Tr "preview"}}</a>
</div>
<div class="ui bottom attached active write tab segment">
<textarea tabindex="1" name="content"></textarea>
<textarea class="review-textarea" tabindex="1" name="content"></textarea>
</div>
<div class="ui bottom attached tab preview segment markdown">
{{$.i18n.Tr "loading"}}

+ 1
- 1
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'));

正在加载...
取消
保存