Commit 3d3fb946 authored by Patrick's avatar Patrick

Display something into "home_info" in order to have a better rendering

parent 41f163af
...@@ -12,6 +12,10 @@ ...@@ -12,6 +12,10 @@
{% addtoblock "jshead" %}<script src="{{ STATIC_URL}}waypoints/shortcuts/infinite.min.js"></script>{% endaddtoblock %} {% addtoblock "jshead" %}<script src="{{ STATIC_URL}}waypoints/shortcuts/infinite.min.js"></script>{% endaddtoblock %}
{% if offeritem_list %} {% if offeritem_list %}
<div class="infinite-container"> <div class="infinite-container">
{% if page_obj.has_next %}
<span href="?page={{ page_obj.next_page_number }}&producer={{ producer_id }}&departementforcustomer={{ departementforcustomer_id }}&is_like={{ is_like }}{% if q %}&q={{ q }}{% endif %}"
class="infinite-more-link"></span>
{% endif %}
{% for offer in offeritem_list %} {% for offer in offeritem_list %}
<div class="infinite-item"> <div class="infinite-item">
{% if offer.picture %} {% if offer.picture %}
...@@ -44,8 +48,9 @@ ...@@ -44,8 +48,9 @@
{% endfor %} {% endfor %}
</div> </div>
{% if page_obj.has_next %} {% if page_obj.has_next %}
<a href="?page={{ page_obj.next_page_number }}&producer={{ producer_id }}&departementforcustomer={{ departementforcustomer_id }}&is_like={{ is_like }}{% if q %}&q={{ q }}{% endif %}" <div class="loading" style="display: none;">
class="infinite-more-link btn btn-default not-active"><span class="glyphicon glyphicon-refresh gly-spin"></span>&nbsp;{% trans "Loading..." %}</a> <a href="#" class="btn btn-default not-active"><span class="glyphicon glyphicon-refresh gly-spin"></span>&nbsp;{% trans "Loading..." %}</a>
</div>
{% endif %} {% endif %}
<div class="loaded" style="display: none;"> <div class="loaded" style="display: none;">
<a class="btn btn-default btn-disabled back-to-top-sticky-button" id="backToTop" href="#top"><span class="glyphicon glyphicon-menu-up" aria-hidden="true"></span></a> <a class="btn btn-default btn-disabled back-to-top-sticky-button" id="backToTop" href="#top"><span class="glyphicon glyphicon-menu-up" aria-hidden="true"></span></a>
...@@ -64,8 +69,10 @@ ...@@ -64,8 +69,10 @@
element: $('.infinite-container')[0], element: $('.infinite-container')[0],
onBeforePageLoad: function () { onBeforePageLoad: function () {
$('.loaded').hide(); $('.loaded').hide();
$('.loading').show();
}, },
onAfterPageLoad: function ($items) { onAfterPageLoad: function ($items) {
$('.loading').hide();
$('.loaded').show(); $('.loaded').show();
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment