From c7a9d182d31cbe4006b1510b1785d2d43fc72a82 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Mon, 7 Aug 2017 12:44:12 -0400 Subject: [PATCH] Hide channels on other servers to avoid confusion --- templates/editor.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/editor.html b/templates/editor.html index 03ecc37..3d3aeeb 100755 --- a/templates/editor.html +++ b/templates/editor.html @@ -49,7 +49,12 @@ // console.log("found default channel to post: "+servers[hostname]+channel); var option = $("option[value='"+servers[hostname]+channel+"']"); // console.log(option); - option.prop('selected', true) + option.prop('selected', true); + } + if (servers[hostname]) { + var badoptions = $("select#channel option:not([value^='"+servers[hostname]+"'])"); + console.log(badoptions); + badoptions.remove(); } });