File tree 2 files changed +10
-1
lines changed 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 26
26
<span class="markdown-info"><i class="octicon octicon-markdown"></i> {{$.root.i18n.Tr "repo.diff.comment.markdown_info"}}</span>
27
27
<div class="ui right floated">
28
28
{{if $.reply}}
29
- <button name="reply" value="{{$.reply}}" class="ui submit green tiny button btn-reply">{{$.root.i18n.Tr "repo.diff.comment.reply"}}</button>
29
+ <input type="hidden" name="reply" value="{{$.reply}}">
30
+ <button class="ui submit green tiny button btn-reply" onclick="window.submitReply(this);">{{$.root.i18n.Tr "repo.diff.comment.reply"}}</button>
30
31
{{else}}
31
32
{{if $.root.CurrentReview}}
32
33
<button name="is_review" value="true" type="submit"
Original file line number Diff line number Diff line change @@ -3557,6 +3557,14 @@ window.cancelCodeComment = function (btn) {
3557
3557
form . closest ( '.comment-code-cloud' ) . remove ( ) ;
3558
3558
}
3559
3559
} ;
3560
+
3561
+ window . submitReply = function ( btn ) {
3562
+ const form = $ ( btn ) . closest ( 'form' ) ;
3563
+ if ( form . length > 0 && form . hasClass ( 'comment-form' ) ) {
3564
+ form . submit ( ) ;
3565
+ }
3566
+ } ;
3567
+
3560
3568
window . onOAuthLoginClick = function ( ) {
3561
3569
const oauthLoader = $ ( '#oauth2-login-loader' ) ;
3562
3570
const oauthNav = $ ( '#oauth2-login-navigator' ) ;
You can’t perform that action at this time.
0 commit comments