1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

See #54. Move the flashing message to absolute positionning to avoid annoying shifting of the bills list.

This commit is contained in:
Arnaud Bos 2011-11-02 13:44:55 +01:00
parent ac2935b429
commit 0fe49c13d5

View file

@ -9,6 +9,8 @@
{% 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(){
var left = window.innerWidth/2-$('.flash').width()/2;
$(".flash").css({ "left": left+"px", "top":"45px" });
setTimeout(function(){ setTimeout(function(){
$(".flash").fadeOut("slow", function () { $(".flash").fadeOut("slow", function () {
$(".flash").remove(); $(".flash").remove();
@ -80,13 +82,13 @@
<div class="container-fluid" style="height: 100%; padding-left: 10px;"> <div class="container-fluid" style="height: 100%; padding-left: 10px;">
{% block sidebar %}{% endblock %} {% block sidebar %}{% endblock %}
<div class="content" style="margin-left: 250px;"> <div class="content" style="margin-left: 250px;">
{% for message in get_flashed_messages() %}
<div class="flash alert-message info"><p>{{ message }}</p></div>
{% endfor %}
{% block content %} {% block content %}
{% endblock %} {% endblock %}
</div> </div>
</div> </div>
{% for message in get_flashed_messages() %}
<div class="flash alert-message info" style="position:absolute;"><p>{{ message }}</p></div>
{% endfor %}
{% endblock %} {% endblock %}
{% block footer %} {% block footer %}
<div id="footer"> <div id="footer">