+{% block extrahead %}
+ <script src="/static/js/jquery.lazyload.js" type="text/javascript" charset="utf-8"></script>
+ <script type="text/javascript" charset="utf-8">
+ $(function() {
+ $('#id_folders').change(function() {
+ $('#images').load('/images/' + $('#id_folders').val() + '/', function() {
+ $('#images').data('lastScroll', -1000);
+ });
+ });
+
+ $('#images').lazyload('.image-box', {threshold: 600});
+ });
+ </script>
+{% endblock extrahead %}
+