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;
|
position: absolute;
|
||||||
top: 4.5rem;
|
top: 4.5rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
pointer-events: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.light {
|
.light {
|
||||||
|
|
|
@ -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">×</span>
|
||||||
{% endif %}
|
</button>
|
||||||
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue