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)