From 8e6342b627669c9e30a5c2146b39717fa058bb61 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sun, 28 Sep 2025 21:48:11 +1000 Subject: [PATCH] quick add of files_div to be able to toggle beween files viewing and viewer itself, moved isMobile to support js, change eids to use query_data - for now, will remove when we consolidate to new approach --- templates/files.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/files.html b/templates/files.html index a674349..0b8dc1a 100644 --- a/templates/files.html +++ b/templates/files.html @@ -39,6 +39,7 @@ getPage(1) +
{% if search_term is defined %} @@ -144,7 +145,10 @@
{% set eids=namespace( str="" ) %} {# gather all the file eids and collect them in case we go gallery mode #} - + {% for obj in query_data.entry_list %} + {% set eids.str = eids.str + obj|string +"," %} + {% endfor %} +
{% set ecnt=namespace( val=0 ) %}
@@ -287,6 +291,7 @@
+ {% endblock main_content %} {% block script_content %} @@ -419,11 +424,6 @@ $( document ).keydown(function(event) { break; } }) -function isMobile() { - try{ document.createEvent("TouchEvent"); return true; } - catch(e){ return false; } -} - if( isMobile() ) { $('#shift-key').css('visibility', 'visible');