alter move_paths from a specific var passed in the render_template, to be folded into query_data var
This commit is contained in:
@@ -221,21 +221,23 @@
|
|||||||
|
|
||||||
{% block script_content %}
|
{% block script_content %}
|
||||||
<script>
|
<script>
|
||||||
|
// GLOBALS
|
||||||
document.fake_shift=0
|
document.fake_shift=0
|
||||||
document.fake_ctrl=0
|
document.fake_ctrl=0
|
||||||
|
|
||||||
// FIXME: used by viewer code - should probably get rid of this?
|
// FIXME: used by viewer code - should probably get rid of this?
|
||||||
var fullscreen=false;
|
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)
|
// 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;
|
document.viewing=null;
|
||||||
|
|
||||||
var OPT = {{ OPT.to_dict()|tojson }};
|
var OPT = {{ OPT.to_dict()|tojson }};
|
||||||
OPT.root_eid = {{ query_data.root_eid }};
|
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
|
// this is the list of entry ids for the images for ALL matches for this query
|
||||||
var entryList={{query_data.entry_list}}
|
var entryList={{query_data.entry_list}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user