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; position: absolute;
top: 4.5rem; top: 4.5rem;
width: 100%; width: 100%;
pointer-events: none;
} }
.light { .light {

View file

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