mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 22:38:40 +00:00
fix: disable submit button if can submit
This commit is contained in:
parent
dfc57f13d3
commit
94f31d0620
@ -665,7 +665,7 @@ class UOJForm {
|
|||||||
EOD;
|
EOD;
|
||||||
} else {
|
} else {
|
||||||
echo <<<EOD
|
echo <<<EOD
|
||||||
$("#button-submit-{$this->form_name}").addClass('disabled');
|
if (ok) $("#button-submit-{$this->form_name}").addClass('disabled');
|
||||||
return ok;
|
return ok;
|
||||||
EOD;
|
EOD;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user