mirror of
https://github.com/thelounge/thelounge
synced 2025-02-16 21:28:23 +00:00
Merge pull request #2225 from thelounge/mcinkay/2224-collapse-select-lobby
Select lobby of network when collapsing network
This commit is contained in:
commit
4c62b0d50c
1 changed files with 4 additions and 0 deletions
|
@ -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") {
|
||||
|
|
Loading…
Add table
Reference in a new issue