mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 09:09:02 +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();
|
e.preventDefault();
|
||||||
|
|
||||||
const $form = $(e.target);
|
const $form = $(e.target);
|
||||||
|
if ($form.hasClass('is-loading')) return;
|
||||||
|
$form.addClass('is-loading');
|
||||||
|
|
||||||
const $textArea = $form.find('textarea');
|
const $textArea = $form.find('textarea');
|
||||||
if (!validateTextareaNonEmpty($textArea)) {
|
if (!validateTextareaNonEmpty($textArea)) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue