Fix being unable to switch window from settings to chan

This commit is contained in:
Maxime Poulin 2016-07-06 03:08:27 -04:00
parent faaa37cfe2
commit 26bf948fdc
No known key found for this signature in database
GPG key ID: CB63C36252F40D4B

View file

@ -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"));
}