From 26bf948fdc600ec0294094861f127e3d2360c095 Mon Sep 17 00:00:00 2001 From: Maxime Poulin Date: Wed, 6 Jul 2016 03:08:27 -0400 Subject: [PATCH] Fix being unable to switch window from settings to chan --- client/js/lounge.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/client/js/lounge.js b/client/js/lounge.js index db82df4c..2e014815 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -773,7 +773,7 @@ $(function() { } viewport.removeClass("lt"); - var lastActive = $("#windows .chan.active"); + var lastActive = $("#windows > .active"); lastActive .removeClass("active") @@ -781,10 +781,8 @@ $(function() { .unsticky(); lastActive - .find(".unread-marker") - .appendTo(lastActive.find(".messages")); - - $("#chat-container").addClass("active"); + .find(".chan.active") + .removeClass("active"); var chan = $(target) .addClass("active") @@ -802,6 +800,7 @@ $(function() { document.title = title; if (self.hasClass("chan")) { + $("#chat-container").addClass("active"); setNick(self.closest(".network").data("nick")); }