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