mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-24 08:57:03 -05: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
1 changed files with 3 additions and 0 deletions
|
@ -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