mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
Assign last visible div to var.
This commit is contained in:
parent
979d992bd1
commit
24419cb8e8
1 changed files with 4 additions and 4 deletions
|
@ -442,11 +442,11 @@ $(function() {
|
|||
target,
|
||||
data
|
||||
]);
|
||||
|
||||
var lastVisible = container.find("div:visible").last();
|
||||
if (data.msg.self
|
||||
|| container.find("div:visible").last().hasClass("unread-marker")
|
||||
|| (container.find("div:visible").last().hasClass("date-marker")
|
||||
&& container.find("div:visible").last().prev().hasClass("unread-marker"))) {
|
||||
|| lastVisible.hasClass("unread-marker")
|
||||
|| (lastVisible.hasClass("date-marker")
|
||||
&& lastVisible.prev().hasClass("unread-marker"))) {
|
||||
container
|
||||
.find(".unread-marker")
|
||||
.appendTo(container);
|
||||
|
|
Loading…
Reference in a new issue