mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
Flash messages must be dimissed manually
This commit is contained in:
parent
19b5b13663
commit
e2286676f1
2 changed files with 6 additions and 12 deletions
|
@ -469,7 +469,6 @@ tr.payer_line .balance-name {
|
|||
position: absolute;
|
||||
top: 4.5rem;
|
||||
width: 100%;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.light {
|
||||
|
|
|
@ -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">×</span>
|
||||
</button>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue