From d53ca8b3c5e5ecbf0814c5f8e0923033a46b79dd Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 21 Jun 2022 13:39:22 -0500 Subject: [PATCH] Work - Disable button after submit in comments form - refs BT#20033 --- main/work/work.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/work/work.lib.php b/main/work/work.lib.php index 15f99ac8f7..82b83c7a59 100755 --- a/main/work/work.lib.php +++ b/main/work/work.lib.php @@ -4403,7 +4403,7 @@ function getWorkCommentForm($work, $workParent) ); } - $form->addButtonSend(get_lang('Send'), 'button'); + $form->addButtonSend(get_lang('Send'), 'button', false, ['onclick' => 'this.form.submit();this.disabled=true;']); return $form->returnForm(); }