comments for clarity of root_eid=0 meaning no entries

This commit is contained in:
2025-10-12 13:14:13 +11:00
parent 517b5c6167
commit cb5ff7e985
2 changed files with 4 additions and 0 deletions

View File

@@ -40,6 +40,8 @@
// this is the list of entry ids for the images for ALL matches for this query
var entryList={{query_data.entry_list}}
var OPT = {{ OPT.to_dict()|tojson }};
// set from query data and stored in OPT for convenience. It can be 0 -
// this implies no content in the Path at all
OPT.root_eid = {{ query_data.root_eid }};
// pageList is just those entries shown on this page from the full entryList

View File

@@ -247,6 +247,8 @@
document.viewing=null;
var OPT = {{ OPT.to_dict()|tojson }};
// set from query data and stored in OPT for convenience. It can be 0 -
// this implies no content in the Path at all
OPT.root_eid = {{ query_data.root_eid }};
// get items out of query_data into convenience javascript vars...