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:
parent
9c26fa34bb
commit
c7a9d182d3
1 changed files with 6 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue