From 7724762c14f7385ee8ab9071aade088c4c8f35f2 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Mon, 19 Feb 2018 21:05:05 +0200 Subject: [PATCH] Fix active class not being removed when switching channels --- client/js/lounge.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/js/lounge.js b/client/js/lounge.js index 954cf0dd..d3af1878 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -372,7 +372,9 @@ $(function() { sidebarSlide.toggle(false); } - const lastActive = $("#windows > .active") + const lastActive = $("#windows > .active"); + + lastActive .removeClass("active") .find(".chat") .unsticky();