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 27
27
<span class="markdown-info">{{svg "octicon-markdown" 16}} {{$.root.i18n.Tr "repo.diff.comment.markdown_info"}}</span>
28
28
<div class="ui right floated">
29
29
{{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>
31
32
{{else}}
32
33
{{if $.root.CurrentReview}}
33
34
<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) {
3559
3559
form . closest ( '.comment-code-cloud' ) . remove ( ) ;
3560
3560
}
3561
3561
} ;
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
+
3562
3570
window . onOAuthLoginClick = function ( ) {
3563
3571
const oauthLoader = $ ( '#oauth2-login-loader' ) ;
3564
3572
const oauthNav = $ ( '#oauth2-login-navigator' ) ;
You can’t perform that action at this time.
0 commit comments