sneed
This commit is contained in:
parent
f937f51827
commit
5839d0dcc1
1 changed files with 4 additions and 4 deletions
|
@ -4,12 +4,12 @@
|
|||
<head>
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#submitform').submit(function() {
|
||||
(document).ready(function() {
|
||||
('#submitform').submit(function() {
|
||||
// disable button
|
||||
$("#create_button").prop("disabled", true);
|
||||
("#create_button").prop("disabled", true);
|
||||
// add spinner to button
|
||||
$("#create_button").html('<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Creating post');
|
||||
("#create_button").html('<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Creating post');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue