Select lobby of network when collapsing network

Fixes #2224
This commit is contained in:
Al McKinlay 2018-03-14 12:07:05 +00:00
parent cdb810ebc5
commit 1fbdb170e4

View File

@ -308,6 +308,10 @@ function loadMoreHistory(entries) {
sidebar.on("click", ".collapse-network", (e) => {
const collapseButton = $(e.target);
if (collapseButton.closest(".network").find(".active").length > 0) {
collapseButton.closest(".lobby").click();
}
collapseButton.closest(".network").toggleClass("collapsed");
if (collapseButton.attr("aria-expanded") === "true") {