do not dismiss message when error message
All checks were successful
Tests / test (push) Successful in 25s

This commit is contained in:
Tobias Brunner 2025-07-07 13:38:09 +02:00
parent e78a63c67f
commit 5fa3d32c57
No known key found for this signature in database

View file

@ -9,7 +9,7 @@
<script>
document.addEventListener('DOMContentLoaded', function() {
const alert = document.getElementById('auto-dismiss-alert-{{ forloop.counter0|default:'0' }}');
if (alert) {
if (alert && !alert.classList.contains('alert-danger')) {
setTimeout(function() {
let opacity = 1;
const fadeOutInterval = setInterval(function() {