Преглед на файлове

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 Целия файл

<a class="preview item" data-url="{{$.Repository.APIURL}}/markdown" data-context="{{$.RepoLink}}">{{$.i18n.Tr "preview"}}</a> <a class="preview item" data-url="{{$.Repository.APIURL}}/markdown" data-context="{{$.RepoLink}}">{{$.i18n.Tr "preview"}}</a>
</div> </div>
<div class="ui bottom attached active write tab segment"> <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>
<div class="ui bottom attached tab preview segment markdown"> <div class="ui bottom attached tab preview segment markdown">
{{$.i18n.Tr "loading"}} {{$.i18n.Tr "loading"}}

+ 1
- 1
web_src/js/index.js Целия файл

return; return;
} }


setCommentSimpleMDE($('.comment.form textarea'));
setCommentSimpleMDE($('.comment.form textarea:not(.review-textarea)'));
initBranchSelector(); initBranchSelector();
initCommentPreviewTab($('.comment.form')); initCommentPreviewTab($('.comment.form'));
initImagePaste($('.comment.form textarea')); initImagePaste($('.comment.form textarea'));

Loading…
Отказ
Запис