From 002a47416f95cc03dc6ff8bb524b2d6c6edb4912 Mon Sep 17 00:00:00 2001 From: Liam Burnand Date: Sun, 24 Dec 2023 11:41:18 +0000 Subject: [PATCH] Making sure the details are hidden if the selector is on please select --- server/templates/main.tmpl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/server/templates/main.tmpl b/server/templates/main.tmpl index 031eea4..55acd2c 100644 --- a/server/templates/main.tmpl +++ b/server/templates/main.tmpl @@ -243,11 +243,8 @@ select.options[select.options.length] = new Option(myArray[index], myArray[index]); } - if (endpointSelector.val() === 'please_select') { - streamFurther.hide(); - } else { - streamFurther.show(); - } + selectObject.options.selectedIndex = 0; + streamFurther.hide(); }, }); }