mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 22:10:22 +00:00
Remember active window between logins
This commit is contained in:
parent
8ae98d81b2
commit
c341d7a0b6
1 changed files with 4 additions and 4 deletions
|
@ -90,13 +90,11 @@ $(function() {
|
|||
})
|
||||
);
|
||||
|
||||
sidebar.find(".chan").eq(0).trigger("click");
|
||||
sidebar.find(".empty").hide();
|
||||
|
||||
$("body").removeClass("signed-out");
|
||||
|
||||
var id = $.cookie("target");
|
||||
var target = sidebar.find("[data-target=" + id + "]").trigger("click");
|
||||
var target = sidebar.find("[data-target='" + id + "']").trigger("click");
|
||||
if (target.length === 0) {
|
||||
var first = sidebar.find(".chan")
|
||||
.eq(0)
|
||||
|
@ -276,7 +274,9 @@ $(function() {
|
|||
return;
|
||||
}
|
||||
|
||||
$.cookie("target", target);
|
||||
if (self.hasClass("chan")) {
|
||||
$.cookie("target", target);
|
||||
}
|
||||
chat.data(
|
||||
"id",
|
||||
self.data("id")
|
||||
|
|
Loading…
Reference in a new issue