Merge pull request #1156 from PolarizedIons/fix-fix-datemarker
Fix fixing the date-marker not being removed when it should be.
This commit is contained in:
commit
0480275ab9
@ -512,7 +512,6 @@ $(function() {
|
||||
// get the scrollable wrapper around messages
|
||||
var scrollable = chan.closest(".chat");
|
||||
var heightOld = chan.height();
|
||||
chan.prepend(documentFragment).end();
|
||||
|
||||
// Remove the date-change marker we put at the top, because it may
|
||||
// not actually be a date change now
|
||||
@ -524,6 +523,9 @@ $(function() {
|
||||
children.eq(1).remove();
|
||||
}
|
||||
|
||||
// Add the older messages
|
||||
chan.prepend(documentFragment).end();
|
||||
|
||||
// restore scroll position
|
||||
var position = chan.height() - heightOld;
|
||||
scrollable.scrollTop(position);
|
||||
|
Loading…
Reference in New Issue
Block a user