sfd
parent
adc4e25f2f
commit
2591834c40
|
@ -10,14 +10,14 @@
|
|||
|
||||
<script>
|
||||
|
||||
document.ready(function() {
|
||||
document.addEventListener("DOMContentLoaded", function(){
|
||||
document.getElementById('submitform').submit(function() {
|
||||
// disable button
|
||||
document.getElementById('create_button').prop("disabled", true);
|
||||
// add spinner to button
|
||||
document.getElementById('create_button').html('<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Creating post');
|
||||
});
|
||||
// disable button
|
||||
document.getElementById('create_button').prop("disabled", true);
|
||||
// add spinner to button
|
||||
document.getElementById('create_button').html('<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Creating post');
|
||||
});
|
||||
});
|
||||
|
||||
// Text Formatting
|
||||
|
||||
|
|
Loading…
Reference in New Issue