From 1fbdb170e44d2134c9184020853dce661679a610 Mon Sep 17 00:00:00 2001 From: Al McKinlay Date: Wed, 14 Mar 2018 12:07:05 +0000 Subject: [PATCH] Select lobby of network when collapsing network Fixes #2224 --- client/js/render.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/js/render.js b/client/js/render.js index 894daf26..cbf12023 100644 --- a/client/js/render.js +++ b/client/js/render.js @@ -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") {