sfd
This commit is contained in:
parent
d21309a00a
commit
a0d422be20
2 changed files with 12 additions and 11 deletions
|
@ -122,8 +122,9 @@ function post_toast2(url, button1, button2) {
|
|||
document.getElementById(button2).classList.toggle("d-none");
|
||||
}
|
||||
|
||||
// // Tooltips
|
||||
|
||||
// $(document).ready(function(){
|
||||
// $('[data-bs-toggle="tooltip"]').tooltip();
|
||||
// });
|
||||
document.addEventListener("DOMContentLoaded", function(){
|
||||
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
|
||||
var tooltipList = tooltipTriggerList.map(function(element){
|
||||
return new bootstrap.Tooltip(element);
|
||||
});
|
||||
});
|
|
@ -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…
Add table
Add a link
Reference in a new issue