From 032b4b4d1076874d9c85dea9f2fa0344365eaeea Mon Sep 17 00:00:00 2001 From: Liam Burnand Date: Sat, 23 Dec 2023 23:42:25 +0000 Subject: [PATCH] Ensuring the details are hidden if there are no streams --- 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 4bc2788..031eea4 100644 --- a/server/templates/main.tmpl +++ b/server/templates/main.tmpl @@ -224,11 +224,8 @@ for (let i = selectObject.length; i > 0; i--) { selectObject.remove(i); } - if ($('#stream_selector').val() === 'please_select') { - streamFurther.hide(); - } else { - streamFurther.show(); - } + selectObject.options.selectedIndex = 0; + streamFurther.hide(); return; } const myArray = data.split(" ");