summaryrefslogtreecommitdiffstats
path: root/templates/repo/diff
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-02-13 13:22:15 +0800
committerGitHub <noreply@github.com>2020-02-13 13:22:15 +0800
commit17656021f165f8011e5f462f0336a083321c9e20 (patch)
tree81deeb6074b761736ddcfd5c6b613c79f1af4061 /templates/repo/diff
parent9ff4e1d2d9636ea8aa328427f1d31c962221263e (diff)
downloadgitea-17656021f165f8011e5f462f0336a083321c9e20.tar.gz
gitea-17656021f165f8011e5f462f0336a083321c9e20.zip
Fix reply on code review (#10227)
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'templates/repo/diff')
-rw-r--r--templates/repo/diff/comment_form.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/repo/diff/comment_form.tmpl b/templates/repo/diff/comment_form.tmpl
index 0bcd5d2028..1389ed73d4 100644
--- a/templates/repo/diff/comment_form.tmpl
+++ b/templates/repo/diff/comment_form.tmpl
@@ -27,7 +27,8 @@
<span class="markdown-info">{{svg "octicon-markdown" 16}} {{$.root.i18n.Tr "repo.diff.comment.markdown_info"}}</span>
<div class="ui right floated">
{{if $.reply}}
- <button name="reply" value="{{$.reply}}" class="ui submit green tiny button btn-reply">{{$.root.i18n.Tr "repo.diff.comment.reply"}}</button>
+ <input type="hidden" name="reply" value="{{$.reply}}">
+ <button class="ui submit green tiny button btn-reply" onclick="window.submitReply(this);">{{$.root.i18n.Tr "repo.diff.comment.reply"}}</button>
{{else}}
{{if $.root.CurrentReview}}
<button name="is_review" value="true" type="submit"