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 2727 <span class="markdown-info">{{svg "octicon-markdown" 16}} {{$.root.i18n.Tr "repo.diff.comment.markdown_info"}}</span>
2828 <div class="ui right floated">
2929 {{if $.reply}}
30- <button name="reply" value="{{$.reply}}" class="ui submit green tiny button btn-reply">{{$.root.i18n.Tr "repo.diff.comment.reply"}}</button>
30+ <input type="hidden" name="reply" value="{{$.reply}}">
31+ <button class="ui submit green tiny button btn-reply" onclick="window.submitReply(this);">{{$.root.i18n.Tr "repo.diff.comment.reply"}}</button>
3132 {{else}}
3233 {{if $.root.CurrentReview}}
3334 <button name="is_review" value="true" type="submit"
Original file line number Diff line number Diff line change @@ -3559,6 +3559,14 @@ window.cancelCodeComment = function (btn) {
35593559 form . closest ( '.comment-code-cloud' ) . remove ( ) ;
35603560 }
35613561} ;
3562+
3563+ window . submitReply = function ( btn ) {
3564+ const form = $ ( btn ) . closest ( 'form' ) ;
3565+ if ( form . length > 0 && form . hasClass ( 'comment-form' ) ) {
3566+ form . submit ( ) ;
3567+ }
3568+ } ;
3569+
35623570window . onOAuthLoginClick = function ( ) {
35633571 const oauthLoader = $ ( '#oauth2-login-loader' ) ;
35643572 const oauthNav = $ ( '#oauth2-login-navigator' ) ;
You can’t perform that action at this time.
0 commit comments