From c32b99f53e06ea48d4957155d28acb1a21ef1110 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Wed, 1 Oct 2025 23:39:17 +1000 Subject: [PATCH] augment CreateFoldersSelect to support supplying js --- shared.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared.py b/shared.py index 7d2522b..2010aec 100644 --- a/shared.py +++ b/shared.py @@ -93,8 +93,8 @@ def CreateSelect(name, selected, list, js="", add_class="", vals={} ): # TODO: can this be collapsed into using above - probably if the 'selected' passed in was 'In Folder' or 'Flat View' -- but I think that isn't in a var??? # Helper function used in html files to create a bootstrap'd select with options. Same as CreateSelect() really, only contains # hard-coded True/False around the if selected part, but with string based "True"/"False" in the vals={}, and list has "In Folders", "Flat View" -def CreateFoldersSelect(selected, add_class=""): - str = f'' # if selected is true, then folders == true, so make this the selected option if( selected ): str += ''