mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-28 15:37:35 +00:00
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:
commit
5ea7f2c0ed
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue