1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut-pastebin synced 2025-06-07 14:17:26 -04:00

Hide channels on other servers to avoid confusion

This commit is contained in:
Ryan Voots 2017-08-07 12:44:12 -04:00
parent 9c26fa34bb
commit c7a9d182d3

View file

@ -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();
}
});
</script>