mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 08:58:42 +00:00
feat: submit button loading spinner
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1aa61ba767
commit
8e57d52af7
@ -685,7 +685,11 @@ class UOJForm {
|
|||||||
} else {
|
} else {
|
||||||
echo <<<EOD
|
echo <<<EOD
|
||||||
if (ok) {
|
if (ok) {
|
||||||
$("#button-submit-{$this->form_name}").addClass('disabled');
|
$("#button-submit-{$this->form_name}")
|
||||||
|
.addClass('disabled')
|
||||||
|
.css('width', $("#button-submit-{$this->form_name}").outerWidth())
|
||||||
|
.html('<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>');
|
||||||
|
|
||||||
$(this).submit(function () {
|
$(this).submit(function () {
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user