forked from MarseyWorld/MarseyWorld
sneed
parent
8c23383bc1
commit
309f7ef9ce
|
@ -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…
Reference in New Issue