File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 2626 <span class="markdown-info"><i class="octicon octicon-markdown"></i> {{$.root.i18n.Tr "repo.diff.comment.markdown_info"}}</span>
2727 <div class="ui right floated">
2828 {{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>
3031 {{else}}
3132 {{if $.root.CurrentReview}}
3233 <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) {
35573557 form . closest ( '.comment-code-cloud' ) . remove ( ) ;
35583558 }
35593559} ;
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+
35603568window . onOAuthLoginClick = function ( ) {
35613569 const oauthLoader = $ ( '#oauth2-login-loader' ) ;
35623570 const oauthNav = $ ( '#oauth2-login-navigator' ) ;
You can’t perform that action at this time.
0 commit comments