sneed
This commit is contained in:
parent
5839d0dcc1
commit
43c03cb0e8
1 changed files with 10 additions and 9 deletions
|
@ -3,15 +3,16 @@
|
|||
|
||||
<head>
|
||||
<script>
|
||||
|
||||
(document).ready(function() {
|
||||
('#submitform').submit(function() {
|
||||
// disable button
|
||||
("#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');
|
||||
});
|
||||
});
|
||||
jQuery(function($) {
|
||||
(document).ready(function() {
|
||||
$('#submitform').submit(function() {
|
||||
// disable button
|
||||
$("#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');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
//part of submit page js
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue