From 17656021f165f8011e5f462f0336a083321c9e20 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 13 Feb 2020 13:22:15 +0800 Subject: Fix reply on code review (#10227) Co-authored-by: zeripath --- web_src/js/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'web_src/js') 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'); -- cgit v1.2.3