fix: disable submit button if can submit

This commit is contained in:
Baoshuo Ren 2023-02-03 15:01:24 +08:00
parent dfc57f13d3
commit 94f31d0620
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -665,7 +665,7 @@ class UOJForm {
EOD;
} else {
echo <<<EOD
$("#button-submit-{$this->form_name}").addClass('disabled');
if (ok) $("#button-submit-{$this->form_name}").addClass('disabled');
return ok;
EOD;
}