summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/index.js8
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');