alter move_paths from a specific var passed in the render_template, to be folded into query_data var

This commit is contained in:
2025-10-05 22:36:49 +11:00
parent 24c2922f74
commit e0654edd21

View File

@@ -221,21 +221,23 @@
{% block script_content %}
<script>
// GLOBALS
document.fake_shift=0
document.fake_ctrl=0
// FIXME: used by viewer code - should probably get rid of this?
var fullscreen=false;
var move_paths = {{ move_paths|tojson }};
var NMO={{query_data.NMO|tojson}}
// GLOBALS
// this is the current entry (object) we are viewing - an image/video (used when we dbl-click to view & then in next/prev in view)
document.viewing=null;
var OPT = {{ OPT.to_dict()|tojson }};
OPT.root_eid = {{ query_data.root_eid }};
// get items out of query_data into convenience javascript vars...
var move_paths = {{ query_data.move_paths|tojson }};
var NMO={{query_data.NMO|tojson}}
// this is the list of entry ids for the images for ALL matches for this query
var entryList={{query_data.entry_list}}