elementId = DomUtil.identify(this._container.nextElementSibling);
}
else {
+ var insertBefore = this._container;
+ if (insertBefore.previousElementSibling && insertBefore.previousElementSibling.classList.contains('messageListPagination')) {
+ insertBefore = insertBefore.previousElementSibling;
+ }
+
//noinspection JSUnresolvedVariable
- DomUtil.insertHtml(data.returnValues.template, this._container, 'before');
- elementId = DomUtil.identify(this._container.previousElementSibling);
+ DomUtil.insertHtml(data.returnValues.template, insertBefore, 'before');
+ elementId = DomUtil.identify(insertBefore.previousElementSibling);
}
// update last post time
.messageList {
&:not(.messageReducedList) {
@include screen-md-up {
- border-bottom: 1px solid $wcfContentBorder;
border-top: 1px solid $wcfContentBorder;
> li {
+ border-bottom: 1px solid $wcfContentBorder;
padding: 30px 0;
- &:not(:last-child) {
- border-bottom: 1px solid $wcfContentBorder;
+ &.messageListPagination:last-child {
+ border-bottom-width: 0;
}
}
}