This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
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
Antoine GIRARD
5 years ago
parent
af50dbf1b4
commit
9854e9f82b
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
templates/repo/diff/box.tmpl
+1
-1
web_src/js/index.js
+ 1
- 1
templates/repo/diff/box.tmpl
View File
@@ -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
View File
@@ -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'));
Write
Preview
Loading…
Cancel
Save