make whole invite clickable to expand

pull/61/head
Harvey Tindall 4 years ago
parent 882a3467db
commit b66654787c
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -263,6 +263,11 @@ export class DOMInvite implements Invite {
const toggle = (this._infoArea.querySelector("input.inv-toggle-details") as HTMLInputElement);
toggle.onchange = () => { this.expanded = !this.expanded; };
this._header.onclick = (event: Event) => {
if (event.target == this._header) {
this.expanded = !this.expanded;
}
};
this._details = document.createElement('div') as HTMLDivElement;
this._container.appendChild(this._details);

Loading…
Cancel
Save