chanel topic click
This commit is contained in:
parent
4a9a17814e
commit
3ee271a345
2 changed files with 8 additions and 3 deletions
|
@ -942,6 +942,11 @@ class Channel extends SnowFlake {
|
|||
channelTopic.innerHTML = "";
|
||||
channelTopic.append(new MarkDown(this.topic, this).makeHTML());
|
||||
channelTopic.removeAttribute("hidden");
|
||||
channelTopic.onclick = () => {
|
||||
const d = new Dialog(this.name);
|
||||
d.options.addHTMLArea(new MarkDown(this.topic, this).makeHTML());
|
||||
d.show();
|
||||
};
|
||||
} else channelTopic.setAttribute("hidden", "");
|
||||
if (this.guild !== this.localuser.lookingguild) {
|
||||
this.guild.loadGuild();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue