Flash messages must be dimissed manually

This commit is contained in:
Glandos 2021-10-13 22:27:49 +02:00 committed by zorun
parent 19b5b13663
commit e2286676f1
2 changed files with 6 additions and 12 deletions

View file

@ -469,7 +469,6 @@ tr.payer_line .balance-name {
position: absolute;
top: 4.5rem;
width: 100%;
pointer-events: none;
}
.light {

View file

@ -21,12 +21,6 @@
{% block head %}{% endblock %}
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
setTimeout(function(){
$(".flash").fadeOut("slow", function () {
$(".flash").remove();
});
}, 4000);
$('.dropdown-toggle').dropdown();
$('[data-toggle="tooltip"]').tooltip();
{% block js %}{% endblock %}
@ -128,11 +122,12 @@
<div class="messages">
{% for category, message in get_flashed_messages(with_categories=true) %}
{% if category == "message" %}{# Default category for flash(msg) #}
<div class="flash alert alert-success">{{ message }}</div>
{% else %}
<div class="flash alert alert-{{ category }}">{{ message }}</div>
{% endif %}
<div class="flash alert alert-{{ "success" if category == "message" else category }} alert-dismissible fade show">
{{ message }}
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
{% endfor %}
</div>