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");
|
document.getElementById(button2).classList.toggle("d-none");
|
||||||
}
|
}
|
||||||
|
|
||||||
// // Tooltips
|
document.addEventListener("DOMContentLoaded", function(){
|
||||||
|
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
|
||||||
// $(document).ready(function(){
|
var tooltipList = tooltipTriggerList.map(function(element){
|
||||||
// $('[data-bs-toggle="tooltip"]').tooltip();
|
return new bootstrap.Tooltip(element);
|
||||||
// });
|
});
|
||||||
|
});
|
|
@ -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…
Add table
Add a link
Reference in a new issue