Added support for pagination bottom
authorAlexander Ebert <ebert@woltlab.com>
Wed, 24 Aug 2016 10:08:45 +0000 (12:08 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 24 Aug 2016 10:19:22 +0000 (12:19 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/Reply.js
wcfsetup/install/files/style/ui/message.scss

index 722c486b79acb016bab0441fc320b9115d0dda9b..d16fa109477d3b718879afd9e535a90a888c543e 100644 (file)
@@ -280,9 +280,14 @@ define(['Ajax', 'Core', 'EventHandler', 'Language', 'Dom/ChangeListener', 'Dom/U
                                                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
index e0bd88b56225c1dcbf47c823750a7e9880972ea6..1f5ce953c12a64937ff5bc9dffc4e6b3ee7889fc 100644 (file)
@@ -1,14 +1,14 @@
 .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;
                                }
                        }
                }