diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-02-13 13:22:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-13 13:22:15 +0800 |
commit | 17656021f165f8011e5f462f0336a083321c9e20 (patch) | |
tree | 81deeb6074b761736ddcfd5c6b613c79f1af4061 /web_src | |
parent | 9ff4e1d2d9636ea8aa328427f1d31c962221263e (diff) | |
download | gitea-17656021f165f8011e5f462f0336a083321c9e20.tar.gz gitea-17656021f165f8011e5f462f0336a083321c9e20.zip |
Fix reply on code review (#10227)
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/js/index.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js index 75fe28b353..68fb4fddbc 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -3559,6 +3559,14 @@ window.cancelCodeComment = function (btn) { form.closest('.comment-code-cloud').remove(); } }; + +window.submitReply = function (btn) { + const form = $(btn).closest('form'); + if (form.length > 0 && form.hasClass('comment-form')) { + form.submit(); + } +}; + window.onOAuthLoginClick = function () { const oauthLoader = $('#oauth2-login-loader'); const oauthNav = $('#oauth2-login-navigator'); |