mirror of
https://github.com/thelounge/thelounge
synced 2025-02-17 13:48:26 +00:00
Merge pull request #527 from thelounge/PR/fix-unread-clear
Reset the unread marker on channel change
This commit is contained in:
commit
61ea8313fd
1 changed files with 5 additions and 1 deletions
|
@ -764,10 +764,14 @@ $(function() {
|
|||
.find(".chat")
|
||||
.unsticky();
|
||||
|
||||
lastActive
|
||||
var lastActiveChan = lastActive
|
||||
.find(".chan.active")
|
||||
.removeClass("active");
|
||||
|
||||
lastActiveChan
|
||||
.find(".unread-marker")
|
||||
.appendTo(lastActiveChan.find(".messages"));
|
||||
|
||||
var chan = $(target)
|
||||
.addClass("active")
|
||||
.trigger("show");
|
||||
|
|
Loading…
Add table
Reference in a new issue