Merge pull request 'Prevent multiple codecomments to be submitted' (#1752) from Gusted/forgejo:forgejo-code-comment into forgejo-dependency

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/1752
This commit is contained in:
Gusted 2023-11-16 17:48:40 +00:00
commit 5ea7f2c0ed

View file

@ -45,6 +45,9 @@ function initRepoDiffConversationForm() {
e.preventDefault();
const $form = $(e.target);
if ($form.hasClass('is-loading')) return;
$form.addClass('is-loading');
const $textArea = $form.find('textarea');
if (!validateTextareaNonEmpty($textArea)) {
return;