Skip to content

Commit

Permalink
Merge pull request #124 from soehlert/topic/soehlert/extraneous_modal…
Browse files Browse the repository at this point in the history
…_messages

fix(modal-messages): delete modal messages on close
  • Loading branch information
soehlert authored Oct 21, 2023
2 parents d8c9a60 + 222c5fa commit 88fdffa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion concert_elephant/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,17 @@
</script>
{% endcomment %}
<script type="text/javascript">
$(document).ready(function() {
$(document).ready(function() {
setTimeout(function() {
$('.alert-dismissible').fadeOut('slow');
}, 2000);

$('[data-toggle="tooltip"]').tooltip();

// Clear modal message when any modal is closed
$('.modal').on('hidden.bs.modal', function() {
$(this).find('.modal-messages').html("");
});
});

document.addEventListener("DOMContentLoaded", function() {
Expand Down

0 comments on commit 88fdffa

Please sign in to comment.