diff --git a/templates/files.html b/templates/files.html index f1c328f..064978c 100644 --- a/templates/files.html +++ b/templates/files.html @@ -16,14 +16,20 @@ move_paths.push(p) {% endfor %} - document.OPT = '{{OPT}}' - document.entries = '{{entry_data}}' - document.how_many = '{{OPT.how_many}}' - document.entries_len = '{{entry_data|length}}' + // GLOBALS + // how many on this page, we can change this and redraw the page to suit (also used heavily in pagination code related to entry and page list) + var howMany = {{OPT.how_many}} + + // this is the list of entry ids for the images for ALL matches for this query + var entryList={{query_data.entry_list}} + + // pageList is just those entries shown on this page from the full entryList + var pageList=[] + // force pageList to the first page + getPage(1)
-
{% if search_term is defined %} @@ -68,15 +74,11 @@ {% endif %}
-  {{OPT.how_many}} files  - {% set nxt_disabled="" %} - {% if not entry_data or entry_data|length < OPT.how_many|int %} - {% set nxt_disabled="disabled" %} - {% endif %} -
{% set ecnt=namespace( val=0 ) %} -
+
+ +
-
{% endblock main_content %} {% block script_content %}