Fix being unable to switch window from settings to chan
This commit is contained in:
parent
faaa37cfe2
commit
26bf948fdc
@ -773,7 +773,7 @@ $(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
viewport.removeClass("lt");
|
viewport.removeClass("lt");
|
||||||
var lastActive = $("#windows .chan.active");
|
var lastActive = $("#windows > .active");
|
||||||
|
|
||||||
lastActive
|
lastActive
|
||||||
.removeClass("active")
|
.removeClass("active")
|
||||||
@ -781,10 +781,8 @@ $(function() {
|
|||||||
.unsticky();
|
.unsticky();
|
||||||
|
|
||||||
lastActive
|
lastActive
|
||||||
.find(".unread-marker")
|
.find(".chan.active")
|
||||||
.appendTo(lastActive.find(".messages"));
|
.removeClass("active");
|
||||||
|
|
||||||
$("#chat-container").addClass("active");
|
|
||||||
|
|
||||||
var chan = $(target)
|
var chan = $(target)
|
||||||
.addClass("active")
|
.addClass("active")
|
||||||
@ -802,6 +800,7 @@ $(function() {
|
|||||||
document.title = title;
|
document.title = title;
|
||||||
|
|
||||||
if (self.hasClass("chan")) {
|
if (self.hasClass("chan")) {
|
||||||
|
$("#chat-container").addClass("active");
|
||||||
setNick(self.closest(".network").data("nick"));
|
setNick(self.closest(".network").data("nick"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user