From d258c963f6b2848245bc2da81e628e154d7beb52 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Wed, 22 Sep 2021 20:58:01 +1000 Subject: [PATCH] fix issue with OPT.how_many being an int, so it is not setting the "selected" string options in CreateSelect --- templates/file_list.html | 2 +- templates/files.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/file_list.html b/templates/file_list.html index 44b6577..344c329 100644 --- a/templates/file_list.html +++ b/templates/file_list.html @@ -10,7 +10,7 @@
{{CreateSelect( "noo", OPT.noo, ["Oldest", "Newest","A to Z", "Z to A"], "$('#offset').val(0)", "rounded-start py-1 my-1")|safe }} - {{CreateSelect( "how_many", OPT.how_many, ["10", "25", "50", "75", "100", "150", "200", "500"], "", "rounded-end py-1 my-1" )|safe }} + {{CreateSelect( "how_many", OPT.how_many|string, ["10", "25", "50", "75", "100", "150", "200", "500"], "", "rounded-end py-1 my-1" )|safe }}
{% set prv_disabled="" %} {% if OPT.offset|int == 0 %} diff --git a/templates/files.html b/templates/files.html index 8c5a787..02a09c6 100644 --- a/templates/files.html +++ b/templates/files.html @@ -30,7 +30,7 @@
{{CreateSelect( "noo", OPT.noo, ["Oldest", "Newest","A to Z", "Z to A"], "$('#offset').val(0)", "rounded-start py-2")|safe }} - {{CreateSelect( "how_many", OPT.how_many, ["10", "25", "50", "75", "100", "150", "200", "500"])|safe }} + {{CreateSelect( "how_many", OPT.how_many|string, ["10", "25", "50", "75", "100", "150", "200", "500"])|safe }} {% if OPT.folders %} {{CreateFoldersSelect( OPT.folders, "rounded-end" )|safe }}